Go to the documentation of this file.
30 #ifndef MARTI_DATA_STRUCTURES_LINKED_LIST_H_
31 #define MARTI_DATA_STRUCTURES_LINKED_LIST_H_
59 while (this->
size() > 0)
77 while (this->
size() > 0)
92 if (this->
size() == 0)
106 this->
add(*copyElem);
192 ctr *itemToMove = this->
get(i);
193 if (itemToMove ==
NULL)
230 if (i >= this->
size() || i < 0)
235 for (
int j = 0; j < i; j++)
277 for (
int i = 0; i < N; ++i)
303 while (this->
size() > 0)
321 while (this->
size() > 0)
336 if (this->
size() == 0)
350 this->
add(*copyElem);
436 ctr *itemToMove = this->
get(i);
437 if (itemToMove ==
NULL)
473 if (i >= this->
size() || i < 0)
478 for (
int j = 0; j < i; j++)
522 for (
int i = 0; i < N; ++i)
530 #endif // MARTI_DATA_STRUCTURES_LINKED_LIST_H_
void release_elem(ctr *elem)
ctr * alloc_elem(T *elem)
void CreateNewLinkedList(T *firstElement)
LinkedList_NoDealloc< T > & operator=(const LinkedList_NoDealloc< T > &src)
void addToTail(T *newElem)
void release_elem(ctr *elem)
LinkedList_NoDealloc(const LinkedList_NoDealloc< T > &src)
LinkedList(const LinkedList< T > &src)
void insertCopyAt(const T &newElem, int i)
void addCopy(const T &newElem)
void CreateNewLinkedList(T *firstElement)
LinkedList< T > & operator=(const LinkedList< T > &src)
void insertAt(T &newElem, int i)
void insertAt(T &newElem, int i)
void CopyList(const LinkedList_NoDealloc< T > &src, LinkedList_NoDealloc< T > &dest)
ctr * alloc_elem(T *elem)
void addCopy(const T &newElem)
void CopyList(const LinkedList< T > &src, LinkedList< T > &dest)
void addToTail(T *newElem)
void insertCopyAt(const T &newElem, int i)
void addInPosition(T *elem, int i)
void addInPosition(T *elem, int i)