|
AGX Dynamics
2.37.2.0
|
#include <List.h>
Classes | |
| class | const_iterator |
| class | const_reverse_iterator |
| class | EqualPred1 |
| class | EqualPred2 |
| class | iterator |
| class | LessPred1 |
| class | LessPred2 |
| class | reverse_iterator |
Public Types | |
| typedef const T * | const_pointer |
| typedef const T & | const_reference |
| typedef List< T > | my_type |
| typedef LNode< T > * | node_ptr_type |
| typedef LNode< T > & | node_ref_type |
| typedef LNode< T > | node_type |
| typedef T * | pointer |
| typedef T & | reference |
| typedef size_t | size_type |
| typedef T | value_type |
Public Member Functions | |
| List () | |
| Default constructor, size zero and begin() == end(). More... | |
| List (const List &other) | |
| Copy constructor. More... | |
| ~List () | |
| Destructor. More... | |
| reference | back () |
| const_reference | back () const |
| iterator | begin () |
| const_iterator | begin () const |
| void | clear () |
| Clear this list of all elements. More... | |
| bool | contains (const_reference _val) |
Check if a value _val is part of this list (at least one time). More... | |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | erase (const_iterator _where) |
Erase element at _where. More... | |
| const_iterator | find (const_reference _val) const |
Find iterator to FIRST element with value _val. More... | |
| iterator | find (const_reference _val) |
Find iterator to FIRST element with value _val. More... | |
| reference | front () |
| const_reference | front () const |
| iterator | insert (const_iterator _where, const_reference c_ref) |
Insert an element c_ref before _where. More... | |
| template<typename InputIterator > | |
| void | insert (const_iterator _where, InputIterator _first, InputIterator _last) |
Insert N elements before _where. More... | |
| template<typename Pred > | |
| void | merge (my_type &other, Pred pred) |
Merge in elements from other, both this and other are ordered by pred. More... | |
| void | merge (my_type &other) |
Merge in elements from other, both this and other are ordered by operator<. More... | |
| List & | operator= (const my_type &other) |
| Assignment operator. More... | |
| bool | operator== (const my_type &other) const |
| Comparison of lists of same size. More... | |
| void | pop_back () |
| Remove last element in this list. More... | |
| void | pop_front () |
| Remove first element in this list. More... | |
| void | push_back (const_reference c_ref) |
| Add element to the back of this list. More... | |
| void | push_front (const_reference c_ref) |
| Add element to the front of this list. More... | |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| void | remove (const_reference valArg) |
Erase (all) elements matching valArg. More... | |
| template<typename Pred > | |
| void | remove_if (Pred pred) |
Erase (all) elements matching pred. More... | |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| void | reverse () |
| Reverse sequence. More... | |
| size_type | size () const |
| template<typename Pred > | |
| void | sort (Pred pred) |
Sorts the content in this list given pred. More... | |
| void | sort () |
| Sorts the content in this list given operator<. More... | |
| void | splice (const_iterator _where, my_type &other, const_iterator first, const_iterator last, size_type count) |
Splice other [first, last) at _where. More... | |
| void | splice (const_iterator _where, my_type &other) |
Splice other [other.begin(), other.end()) at _where. More... | |
| void | splice (const_iterator _where, my_type &other, const_iterator first, const_iterator last) |
Splice other [first, last) at _where. More... | |
| void | swap (my_type &other) |
Swap this with other. More... | |
| template<typename Pred > | |
| void | unique (Pred pred) |
Erases each element satisfying pred with previous. More... | |
| void | unique () |
| Erases each element satisfying operator== with previous. More... | |
| typedef const T* agx::List< T >::const_pointer |
| typedef const T& agx::List< T >::const_reference |
| typedef LNode<T>* agx::List< T >::node_ptr_type |
| typedef LNode<T>& agx::List< T >::node_ref_type |
| typedef T agx::List< T >::value_type |
|
inline |
Definition at line 579 of file List.h.
Referenced by agx::List< CameraDescriptionRef >::merge(), agx::List< CameraDescriptionRef >::operator=(), agx::List< CameraDescriptionRef >::operator==(), agx::List< CameraDescriptionRef >::sort(), and agx::List< CameraDescriptionRef >::splice().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 624 of file List.h.
Referenced by agx::List< CameraDescriptionRef >::merge(), and agx::List< CameraDescriptionRef >::sort().
Definition at line 589 of file List.h.
Referenced by agx::List< CameraDescriptionRef >::merge(), agx::List< CameraDescriptionRef >::operator=(), and agx::List< CameraDescriptionRef >::splice().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Merge in elements from other, both this and other are ordered by pred.
Note that other will be empty after the merge.
| other | - the other list to merge into this |
| pred | - operator for merge |
Definition at line 802 of file List.h.
Referenced by agx::List< CameraDescriptionRef >::sort().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 619 of file List.h.
Referenced by agx::List< CameraDescriptionRef >::operator==(), and agx::List< CameraDescriptionRef >::splice().
|
inline |
|
inline |
Splice other [first, last) at _where.
Size of other after this operation is other.size() - count.
| _where | - where at this |
| other | - other list |
| first | - iterator to first element in other |
| last | - iterator to last element i other |
| count | - number of elements [first, last) |
Definition at line 949 of file List.h.
Referenced by agx::List< CameraDescriptionRef >::sort().
|
inline |
Splice other [other.begin(), other.end()) at _where.
| _where | - where at this |
| other | - other list |
|
inline |
Splice other [first, last) at _where.
first and last is known, use splice given count instead. | _where | - where at this |
| other | - other list |
| first | - iterator to first element in other |
| last | - iterator to last element i other |
Swap this with other.
Definition at line 897 of file List.h.
Referenced by agx::List< CameraDescriptionRef >::sort().
|
inline |