Dataflow Runtime API
3.1.1.0
|
LinkedList specialization for double linked list class. More...
#include <Imt.Base.Core.Util/LinkedList.h>
Public Member Functions | |
LinkedList (Allocator &listAllocator, size_t listSize) | |
constructor More... | |
LinkedListIterator< Node, iteratorType::BIDIRECTIONAL > | begin () |
LinkedListConstIterator< Node, cIteratorType::BIDIRECTIONAL > | cbegin () const |
LinkedListIterator< Node, iteratorType::BIDIRECTIONAL > | end () |
LinkedListConstIterator< Node, cIteratorType::BIDIRECTIONAL > | cend () const |
void | push_back (const T &e) |
Adds a new element to the back of the list. More... | |
void | pop_front () |
Removes the front element of the list. More... | |
T & | front () |
Retunrns the front element of the list. More... | |
const T & | front () const |
Retunrns the front element of the list. More... | |
size_t | size () const |
Returns the current number of elements in the linked list. More... | |
bool | empty () const |
Returns if the list is empty. More... | |
bool | full () const |
Returns if the list is full. More... | |
void | remove (const T &item) |
removes a valid item from the list More... | |
template<typename TT > | |
bool | contains (TT const &item) const |
checks if a certain item0 is in the list More... | |
LinkedList specialization for double linked list class.
|
inline |
constructor
listAllocator | must pass an initialized Alloctor |
listSize | number of T that can be stored inside the Allocator |
|
inline |
|
inline |
|
inline |
|
inline |
checks if a certain item0 is in the list
item | to check |
|
inline |
Returns if the list is empty.
|
inline |
|
inline |
Retunrns the front element of the list.
|
inline |
Retunrns the front element of the list.
|
inline |
Returns if the list is full.
|
inline |
Removes the front element of the list.
|
inline |
Adds a new element to the back of the list.
e | The new element to copy to the list. |
|
inline |
removes a valid item from the list
item | to remove |
|
inline |
Returns the current number of elements in the linked list.