VarList Class Reference

List variable. More...

Inheritance diagram for VarList:

Inheritance graph
[legend]
Collaboration diagram for VarList:

Collaboration graph
[legend]

Public Types

typedef list< Elem_t >::iterator Iterator
 Iterators.
typedef list< Elem_t >
::const_iterator 
ConstIterator

Public Member Functions

 VarList (intf_thread_t *pIntf)
virtual ~VarList ()
virtual const string & getType () const
 Get the variable type.
virtual void add (const UStringPtr &rcString)
 Add a pointer on a string in the list.
virtual void delSelected ()
 Remove the selected elements from the list.
virtual void clear ()
 Remove all the elements from the list.
int size () const
 Get the number of items in the list.
Iterator begin ()
 Beginning of the list.
ConstIterator begin () const
Iterator end ()
 End of the list.
ConstIterator end () const
Iterator operator[] (int n)
 Return an iterator on the n'th element of the list.
ConstIterator operator[] (int n) const
virtual void action (Elem_t *pItem)
 Execute the action associated to this item.
VarPercentgetPositionVar () const
 Get a reference on the position variable.
const VariablePtrgetPositionVarPtr () const
 Get a counted pointer on the position variable.

Protected Attributes

list< Elem_tm_list
 List of elements.

Data Structures

struct  Elem_t
 Type of an element in the list. More...

Detailed Description

List variable.

Member Typedef Documentation

typedef list<Elem_t>::iterator VarList::Iterator

Iterators.

typedef list<Elem_t>::const_iterator VarList::ConstIterator


Constructor & Destructor Documentation

VarList::VarList ( intf_thread_t pIntf  ) 

VarList::~VarList (  )  [virtual]


Member Function Documentation

virtual const string& VarList::getType (  )  const [inline, virtual]

Get the variable type.

Implements Variable.

void VarList::add ( const UStringPtr rcString  )  [virtual]

Add a pointer on a string in the list.

References m_list, and Subject< VarList >::notify().

void VarList::delSelected (  )  [virtual]

Remove the selected elements from the list.

References begin(), end(), m_list, and Subject< VarList >::notify().

Referenced by CmdPlaylistDel::execute().

void VarList::clear ( void   )  [virtual]

Remove all the elements from the list.

References m_list.

int VarList::size (  )  const [inline]

Get the number of items in the list.

References m_list.

Referenced by CtrlList::handleEvent(), and CtrlList::onResize().

Iterator VarList::begin (  )  [inline]

Beginning of the list.

References m_list.

Referenced by delSelected(), CtrlList::handleEvent(), and operator[]().

ConstIterator VarList::begin (  )  const [inline]

References m_list.

Iterator VarList::end (  )  [inline]

End of the list.

References m_list.

Referenced by delSelected(), CtrlList::handleEvent(), and operator[]().

ConstIterator VarList::end (  )  const [inline]

References m_list.

VarList::Iterator VarList::operator[] ( int  n  ) 

Return an iterator on the n'th element of the list.

References begin(), end(), and i.

VarList::ConstIterator VarList::operator[] ( int  n  )  const

References begin(), end(), and i.

virtual void VarList::action ( Elem_t pItem  )  [inline, virtual]

Execute the action associated to this item.

Referenced by CtrlList::handleEvent().

VarPercent& VarList::getPositionVar (  )  const [inline]

Get a reference on the position variable.

References CountedPtr< T >::get().

Referenced by CtrlList::CtrlList(), CtrlList::handleEvent(), CtrlList::onResize(), VarList(), and CtrlList::~CtrlList().

const VariablePtr& VarList::getPositionVarPtr (  )  const [inline]

Get a counted pointer on the position variable.


Field Documentation

list<Elem_t> VarList::m_list [protected]

List of elements.

Referenced by add(), begin(), clear(), delSelected(), end(), and size().


The documentation for this class was generated from the following files:

Generated on Tue May 25 08:06:28 2010 for VLC by  doxygen 1.5.6