BALL::List< Value > Class Template Reference
[Miscellaneous]
#include <BALL/DATATYPE/list.h>
List of all members.
Detailed Description
template<typename Value>
class BALL::List< Value >
Extended list object. This object is an improved version of the STL list class
Definition at line 34 of file list.h.
Member Typedef Documentation
Iterator type.
Definition at line 45 of file list.h.
Constructor & Destructor Documentation
Default constructor. Create an empty list.
Definition at line 64 of file list.h.
Copy constructor. Create a copy of an existing list.
- Parameters:
-
| map | the list to be copied |
| deep | ignored |
Definition at line 74 of file list.h.
Destructor
Definition at line 88 of file list.h.
Member Function Documentation
Processor application method. Applies the processor to each entry of the list.
- Parameters:
-
| processor | the processor to be applied |
Definition at line 194 of file list.h.
Clear the list
Definition at line 81 of file list.h.
Assign the content of a list to another.
Definition at line 121 of file list.h.
Return the size of the list.
Definition at line 141 of file list.h.
template<typename Value >
Visitor host method. Lists may be visited.
- Parameters:
-
Definition at line 247 of file list.h.
Return true if the list is empty. This method return true if the list does not contain any entries.
Definition at line 171 of file list.h.
Inequality operator. Test if two instances differ in at least one element.
Definition at line 239 of file list.h.
Assign a list from another.
Definition at line 114 of file list.h.
Equality operator. Test if two instances have the same size and same items at the same positions.
Definition at line 215 of file list.h.
Remove an item from the list. The first item that matches item
will be removed.
- Parameters:
-
| item | the item to be removed |
- Returns:
- bool true if the item was removed
Definition at line 150 of file list.h.
Assign a list from another.
- Parameters:
-
| list | the map to be copied |
| deep | ignored |
Definition at line 101 of file list.h.
Swaps the contents of two lists.
Definition at line 127 of file list.h.