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)
200 temp->
next = itemToMove;
230 if (i >= this->
size() || i < 0)
235 for (
int j = 0; j < i; j++)
244 if (node->prev !=
NULL)
256 if (node->next !=
NULL)
258 node->next->prev = node->prev;
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)
444 temp->
next = itemToMove;
473 if (i >= this->
size() || i < 0)
478 for (
int j = 0; j < i; j++)
487 if (node->prev !=
NULL)
499 if (node->next !=
NULL)
501 node->next->prev = node->prev;
522 for (
int i = 0; i < N; ++i)
530 #endif // MARTI_DATA_STRUCTURES_LINKED_LIST_H_
void CreateNewLinkedList(T *firstElement)
void addToTail(T *newElem)
void insertAt(T &newElem, int i)
ctr * alloc_elem(T *elem)
void insertCopyAt(const T &newElem, int i)
void addCopy(const T &newElem)
void addToTail(T *newElem)
void insertAt(T &newElem, int i)
LinkedList(const LinkedList< T > &src)
LinkedList_NoDealloc(const LinkedList_NoDealloc< T > &src)
void CopyList(const LinkedList< T > &src, LinkedList< T > &dest)
void CopyList(const LinkedList_NoDealloc< T > &src, LinkedList_NoDealloc< T > &dest)
void insertCopyAt(const T &newElem, int i)
LinkedList_NoDealloc< T > & operator=(const LinkedList_NoDealloc< T > &src)
LinkedList< T > & operator=(const LinkedList< T > &src)
ctr * alloc_elem(T *elem)
void release_elem(ctr *elem)
void release_elem(ctr *elem)
void CreateNewLinkedList(T *firstElement)
void addCopy(const T &newElem)
void addInPosition(T *elem, int i)
void addInPosition(T *elem, int i)