

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. | |
| VarPercent & | getPositionVar () const |
| Get a reference on the position variable. | |
| const VariablePtr & | getPositionVarPtr () const |
| Get a counted pointer on the position variable. | |
Protected Attributes | |
| list< Elem_t > | m_list |
| List of elements. | |
Data Structures | |
| struct | Elem_t |
| Type of an element in the list. More... | |
| typedef list<Elem_t>::iterator VarList::Iterator |
Iterators.
| typedef list<Elem_t>::const_iterator VarList::ConstIterator |
| VarList::VarList | ( | intf_thread_t * | pIntf | ) |
References getPositionVar(), and VarPercent::set().
| VarList::~VarList | ( | ) | [virtual] |
| virtual const string& VarList::getType | ( | ) | const [inline, virtual] |
| void VarList::add | ( | const UStringPtr & | rcString | ) | [virtual] |
| 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] |
| 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 | ) |
| VarList::ConstIterator VarList::operator[] | ( | int | n | ) | const |
| virtual void VarList::action | ( | Elem_t * | pItem | ) | [inline, virtual] |
| 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.
list<Elem_t> VarList::m_list [protected] |
1.5.6