|
| SingleLinkedList (bool mutableList=false) |
| Constructor of a SingleLinkedList Object. More...
|
|
| ~SingleLinkedList () |
| Destructor of a SingleLinkedList Object.
|
|
void | addAtIndex (int index, T &value) override |
| Add the value to the list at the given index. The original entry at this index, and followings, will be placed directly after the new entry. More...
|
|
void | clear () override |
| Remove all elements from the List. More...
|
|
void | remove (int index) override |
| Remove the entry at the given index. More...
|
|
void | add (T &value) |
| Add a new entry at the end of the list. More...
|
|
void | addAll (int index, AbstractList< T > &list) |
| Add all entries from the given list to this list at a specified index. The original entry at this index, and followings, will be placed directly after the entries of the given list. More...
|
|
void | addAll (AbstractList< T > &list) |
| Add all entries from the given list at the end of the list. More...
|
|
void | addAll (int index, T *arr, const size_t arrSize) |
| Add all entries from an array to this list at a specified index. The original entry at this index, and followings, will be placed directly after the entries of the given list. More...
|
|
void | addAll (T *arr, const size_t arrSize) |
| Add all entries from an array. More...
|
|
void | addFirst (T &value) |
| Add a new entry at the beginning of the list. More...
|
|
void | addLast (T &value) |
| Add a new entry at the end of the list. More...
|
|
T | get (const int index) |
| Get the raw value at a specified index. More...
|
|
T * | getMutableValue (const int index) |
| Get the pointer to the mutable object at a specified index. More...
|
|
virtual void | removeFirst () |
| Remove the first entry from the list.
|
|
virtual void | removeLast () |
| Remove the las entry from the list.
|
|
void | removeAll () |
| Remove all elements from the List. More...
|
|
int | getSize () const |
| Get the number how many elements are saved in the list. More...
|
|
bool | isMutable () const |
| Check if the list is mutable. More...
|
|
bool | isEmpty () const |
| Check if the list is empty. More...
|
|
bool | equals (AbstractList< T > &other) |
| Compare two lists whether their attributes and entries are equal. More...
|
|
T | operator[] (const int index) |
| Get the raw value at a specified index. More...
|
|
bool | operator== (AbstractList< T > &other) |
| Compare two lists whether their attributes and entries are equal. More...
|
|
bool | operator!= (AbstractList< T > &other) |
| Opposite of '=='. More...
|
|
void | operator+ (T &value) |
| Add a new entry at the end of the list. More...
|
|
void | operator+ (AbstractList< T > &list) |
| Add all entries from the given list at the end of the list. More...
|
|
template<typename T>
class SingleLinkedList< T >
Implementation of a single-linked list.
- Template Parameters
-
T | Data Type of entries, that should be stored in the list. |