#include <list.h>
Public Types | |
Type Definitions | |
| typedef std::list< Value >::iterator | Iterator |
| Iterator type. | |
|
typedef std::list< Value >::iterator | iterator |
| typedef std::list< Value >::const_iterator | ConstIterator |
| Constant iterator type. | |
|
typedef std::list< Value >::const_iterator | const_iterator |
Public Member Functions | |
| bool | operator== (const List< Value > &list) const throw () |
| Equality operator. | |
| bool | operator!= (const List< Value > &list) const throw () |
| Inequality operator. | |
Constructors and Destructors | |
| List () throw () | |
| Default constructor. | |
| List (const List &new_list, bool) throw () | |
| Copy constructor. | |
| void | destroy () throw () |
| Clear the list. | |
| virtual | ~List () throw () |
| Destructor. | |
Assignment | |
| void | set (const List &list, bool=true) throw () |
| Assign a list from another. | |
| const List & | operator= (const List &list) throw () |
| Assign a list from another. | |
| void | get (List &list, bool deep=true) const throw () |
| Assign the content of a list to another. | |
| void | swap (List &list) throw () |
| Swaps the contents of two lists. | |
Accessors | |
| Size | getSize () const throw () |
| Return the size of the list. | |
| bool | remove (const Value &item) throw () |
| Remove an item from the list. | |
Predicates | |
| bool | isEmpty () const throw () |
| Return true if the list is empty. | |
DatatypeMiscellaneous | |
| virtual void | host (Visitor< List< Value > > &visitor) throw () |
| Visitor host method. | |
Internal Iterators | |
| bool | apply (UnaryProcessor< Value > &processor) throw () |
| Processor application method. | |
This object is an improved version of the STL list class
|
|||||
|
Constant iterator type.
Reimplemented in PeakList< PT >, PyCompositeList, PyIndexList, and PeakList< Peak< float > >. |
|
|||||
|
Iterator type.
Reimplemented in PeakList< PT >, PyCompositeList, PyIndexList, and PeakList< Peak< float > >. |
|
|||||||||
|
Default constructor. Create an empty list. |
|
||||||||||||||||
|
Copy constructor. Create a copy of an existing list.
|
|
||||||||||
|
Processor application method. Applies the processor to each entry of the list.
|
|
|||||||||
|
Return the size of the list.
|
|
||||||||||
|
Visitor host method. Lists may be visited.
|
|
|||||||||
|
Return true if the list is empty. This method return true if the list does not contain any entries. |
|
||||||||||
|
Inequality operator. Test if two instances differ in at least one element. |
|
||||||||||
|
Assign a list from another.
|
|
||||||||||
|
Equality operator. Test if two instances have the same size and same items at the same positions. |
|
||||||||||
|
Remove an item from the list.
The first item that matches
|
|
||||||||||||||||
|
Assign a list from another.
|