|
commore
1.0.6-SNAPSHOT
|
Inheritance diagram for commore::List< T, A >:Classes | |
| class | const_iterator |
| class | iterator |
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| List (const List< T, A > &original) | |
| List< T, A > & | operator= (const List< T, A > &l) |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| T & | front () |
| const T & | front () const |
| T & | back () |
| const T & | back () const |
| iterator | insert (iterator pos, const T &value) |
| iterator | insert (iterator pos) |
| iterator | insert (size_t pos, const T &value) |
| iterator | insert (size_t pos) |
| void | insert (iterator pos, const_iterator first, const_iterator last) |
| void | push_back (const T &value) |
| void | push_front (const T &value) |
| void | pop_front () |
| void | pop_back () |
| T & | push_back_once (const T &value) |
| T & | add () |
| T & | add (const T &value) |
| bool | remove_at (size_t i) |
| iterator | erase (iterator pos) |
| iterator | erase (iterator first, iterator last) |
| List< T, A > & | remove (const T &value) |
| List< T, A > & | remove (const T *pvalue) |
| List< T, A > & | remove_if (bool(*pred)(const T &)) |
| List< T, A > & | unique () |
| List< T, A > & | unique (int(*pred)(const T &, const T &)) |
| List< T, A > & | merge (List< T, A > &original) |
| List< T, A > & | merge (List< T, A > &original, int(*comp)(const T &, const T &)) |
| List< T, A > & | sort () |
| List< T, A > & | sort (int(*comp)(const T &, const T &)) |
| List< T, A > & | reverse () |
| const_iterator | get_at (size_t i) const |
| iterator | get_at (size_t i) |
| bool | find (const T &value) const |
| bool | find (bool(*pred)(const T &)) const |
| int | compare (const List< T, A > &l) const |
| bool | operator== (const List< T, A > &l) const |
| bool | operator< (const List< T, A > &l) const |
| bool | operator> (const List< T, A > &l) const |
| List< T, A > & | assign (const_iterator first, const_iterator last) |
| List< T, A > & | swap (List< T, A > &original) |
| List< T, A > & | splice (List< T, A > &original) |
| List< T, A > & | splice (iterator pos, List< T, A > &original) |
| void | clear () |
| CMREXD long | read_xml (IBStream &i) |
| CMREXD long | write_xml (OBStream &o) const |
| CMREXD int | write (const Path &file) const |
| CMREXD int | read (const Path &file) |
| CMREXD int | write_xml (const Path &file) const |
| CMREXD int | read_xml (const Path &file) |
| CMREXD AString & | to_xml_string (AString &s) const |
| CMREXD long | from_xml_string (const AString &s) |
Public Member Functions inherited from commore::BaseList | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| iterator | insert (iterator pos, size_t size, FunctionConstructor c, const Byte *value=0) |
| iterator | insert (size_t pos, size_t size, FunctionConstructor c, const Byte *value=0) |
| void | insert (iterator pos, const_iterator first, const_iterator last, size_t size, FunctionConstructor c) |
| Byte * | push_back_once (size_t size, FunctionConstructor ctor, FunctionComparator cmor, const Byte *value) |
| Byte * | push_back (size_t size, FunctionConstructor ctor, const Byte *value=0) |
| bool | find (const Byte *value, FunctionComparator cmor) const |
| bool | find (FunctionFilter filter) const |
| int | compare (const BaseList &l, FunctionComparator cmor) const |
| void | assign (const_iterator first, const_iterator last, FunctionConstructor c, FunctionDestructor d, size_t size) |
| BaseListNodeRoot * | allocate_root_node_ () |
| BaseListNode * | allocate_node_ (size_t size, FunctionConstructor c, const Byte *value=0) |
| void | deallocate_node_ (BaseListNodeRoot *node) |
| void | deallocate_node_ (BaseListNode *node, FunctionDestructor d) |
| void | init_root () |
| void | clear (FunctionDestructor d) |
| iterator | erase (iterator pos, FunctionDestructor d) |
| iterator | erase (iterator first, iterator last, FunctionDestructor d) |
| iterator | get_at (size_t i) |
| const_iterator | get_at (size_t i) const |
| bool | remove_at (size_t i, FunctionDestructor d) |
| BaseList & | swap (BaseList &original) |
| BaseList & | splice (iterator pos, BaseList &original) |
| BaseList & | splice (BaseList &original, FunctionDestructor d) |
| BaseList & | splice (iterator pos, BaseList &original, iterator i) |
| BaseList & | remove (const Byte *v, FunctionComparator cmor, FunctionDestructor d) |
| BaseList & | merge (BaseList &original, FunctionComparator cmor) |
| BaseList & | sort (FunctionComparator cmor) |
| BaseList & | unique (FunctionComparator cmor, FunctionDestructor d) |
| BaseList & | remove_ptr (const Byte *v, FunctionDestructor d) |
| BaseList & | remove_if (FunctionFilter filter, FunctionDestructor d) |
| BaseList & | reverse () |
| size_t | size () const |
| bool | empty () const |
Static Public Member Functions | |
| static void | transfer (iterator pos, iterator first, iterator last) |
Static Public Member Functions inherited from commore::BaseList | |
| static void | move_before (iterator pos, iterator i) |
| static void | move_after (iterator pos, iterator i) |
| static void | transfer (iterator pos, iterator first, iterator last) |
| static int | comparator_ (const Byte *v1, const Byte *v2, size_t size) |
| static void | constructor_ (Byte *data, const Byte *value, size_t size) |
| static void | destructor_ (Byte *data) |
|
inline |
Add a new element at the edn of the list (defaut value)
|
inline |
Add a new element at the edn of the list
| value | of new element |
|
inline |
Assign the list content whit a sequence of value
| first | element of the sequence |
| last | element of the sequence |
|
inline |
Get reference on last element of list
|
inline |
Get const reference on last element of list
|
inline |
Get non const iterator on begin of list
|
inline |
Get const iterator on begin of list
|
inline |
Get a cbegin const iterator cbegin is identical to the const version of begin() but it ensures, in any context, to be recognized by the compiler as returning a const_iterator
|
inline |
Get a cend const iterator cend is identical to the const version of end() but it ensures, in any context, to be recognized by the compiler as returning a const_iterator
|
inline |
Remove all element from the list
|
inline |
Compare the list with an other list Use default comparison function
|
inline |
Get non const iterator on end of list
|
inline |
Get const iterator on end of list
|
inline |
Remove an element from the list
| pos | iterator on the element |
|
inline |
Remove a sequence of element from the list
| first | iterator on the first element |
| last | iterator on the last element |
|
inline |
Check if a value is in the list
| value |
|
inline |
Check if a value is in the list (use a predicate function)
| pred | predicate function |
| CMREXD long commore::List< T, A >::from_xml_string | ( | const AString & | s | ) |
Buid content list froma string xml representation
|
inline |
Get reference on first element of list
|
inline |
Get const reference on first element of list
|
inline |
Get a const iterator at specified index
| i | index |
|
inline |
Get a iterator at specified index
| i | index |
|
inline |
Insert a new element in the list
| pos | iterator position for new element (insert before) |
| value | for new element |
|
inline |
Insert a new element in the list (default value)
| pos | itertor position for new element (insert before) |
|
inline |
Insert a new element in the list
| pos | index position for new element (if pos > list size insert at end) |
| value | for new element |
|
inline |
Insert a new element in the list (default value)
| pos | index position for new element (if pos > list size insert at end) |
|
inline |
Insert a sequence of elements in the list
| pos | iterator position for new elements |
| first | iterator on first element to be inserted (included) |
| last | iterator on first element to be inserted (excluded) |
|
inline |
Merge a list (no duplicate element)
| original | list to merge |
|
inline |
Merge a list (no duplicate element, use a comparison function)
| original | list to merge |
| comp | predicate function |
|
inline |
Compare <
|
inline |
Compare ==
|
inline |
Compare >
|
inline |
Remove last element of the list
|
inline |
Remove first element of the list
|
inline |
Insert a new element at the end of the list
| value | for new element |
|
inline |
Add a new element only in not already in the list
| value | of new element |
|
inline |
Insert a new element at the begening of the list
| value | for new element |
| CMREXD int commore::List< T, A >::read | ( | const Path & | file | ) |
Read a list content from a bynay file
| CMREXD long commore::List< T, A >::read_xml | ( | IBStream & | i | ) |
Read a list content from an xml text stream
| CMREXD int commore::List< T, A >::read_xml | ( | const Path & | file | ) |
Read a list content from an xml text file
|
inline |
Remove element equal to specified value
| value | to remove |
|
inline |
Remove element equal to specified value
| pvalue | pointer to value to remove |
|
inline |
Remove an element from the list
| i | index of the element |
|
inline |
Remove the elements on which the predicate is true
| pred | predicate function |
|
inline |
Reverse content of a list
|
inline |
Sort a list (using default comparison function)
|
inline |
Sort a list (using a comparison function)
| comp | predicate function |
|
inline |
Tranfert list content from an other list content
| original | other list (will be empty after operation) |
|
inline |
Tranfert list content from an other list content
| pos | insert postion |
| original | other list (will be empty after operation) |
|
inline |
Swap list content with an other list content
| original | other list |
| CMREXD AString& commore::List< T, A >::to_xml_string | ( | AString & | s | ) | const |
Get an xml string representation of the list
|
inlinestatic |
Transfer list elements from first to last at pos
| pos | insertion position |
| first | first element of source list |
| last | element of source list |
|
inline |
Remove duplicated element
|
inline |
Remove duplicated element (use comparison function)
| pred | predicate function |
| CMREXD int commore::List< T, A >::write | ( | const Path & | file | ) | const |
Write list content to a binary file
| CMREXD long commore::List< T, A >::write_xml | ( | OBStream & | o | ) | const |
Write list content to an xml text stream
| CMREXD int commore::List< T, A >::write_xml | ( | const Path & | file | ) | const |
Write list content to an xml text file