|
| | TList () noexcept=default |
| | The class default constructor.
|
| | TList (const TList< T, TAlloc > &rhs) |
| | The class copy constructor.
|
| | ~TList () |
| | The class destructor.
|
| void | copyFrom (const TList< T, TAlloc > &rOther) |
| | Copy the data from a given instance.
|
| Iterator | addFront (const T &item) |
| | Adds a new item at the front of the list.
|
| Iterator | addBack (const T &item) |
| | Adds a new item at the back of the list.
|
| void | removeFront () |
| | The first item will be removed.
|
| void | removeBack () |
| | The hast item will be removed.
|
| T & | front () const |
| | Returns the first item.
|
| T & | back () const |
| | Returns the last item.
|
| size_t | size () const |
| | The number of stored items will be returned.
|
| bool | isEmpty () const |
| | Returns true, if the list is empty.
|
| void | clear () |
| | The list will be cleared.
|
| Iterator | begin () const |
| | Returns the iterator showing to the first entry.
|
| Iterator | end () const |
| | Returns the iterator showing to the last entry.
|
| bool | operator== (const TList< T, TAlloc > &rOther) const |
| | Compare operator.
|
| TList< T, TAlloc > & | operator= (const TList< T, TAlloc > &rOther) |
| | Assignment operator.
|
template<class T, class TAlloc = TDefaultAllocator<T>>
class cppcore::TList< T, TAlloc >
This template class implements a simple double linked list container.
Definition at line 37 of file TList.h.
template<class T, class TAlloc = TDefaultAllocator<T>>
The class default constructor.
References addBack(), addFront(), back(), begin(), clear(), copyFrom(), end(), front(), isEmpty(), removeBack(), removeFront(), size(), and TList().
Referenced by copyFrom(), operator=(), operator==(), TList(), and TList().
template<class T, class TAlloc>
template<class T, class TAlloc>