|
Arduino List Library
3.0.1
The Ultimate Collection of Lists
|
Abstract class from which all lists can be derived. More...
#include <AbstractList.hpp>
Data Structures | |
| class | AbstractEntry |
Public Member Functions | |
| void | add (T &value) |
| Add a new entry at the end of the list. More... | |
| virtual void | addAtIndex (int index, T &value)=0 |
| 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 | 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 | clear ()=0 |
| Remove all elements from the List. | |
| virtual void | remove (int index)=0 |
| Remove the entry at the given 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... | |
Protected Member Functions | |
| AbstractList (const bool mutableList) | |
| Constructor of an AbstractList Object. More... | |
| virtual T * | getPointer (int index)=0 |
| Get a pointer to the element, stored at specific index. More... | |
| void | increaseSize () |
| Increase the size of the list by one. Should only be called after an insertion! | |
| void | decreaseSize () |
| Decrease the size of the list by one. Should only be called after an deletion! | |
| void | resetSize () |
| Reset the size to zero. | |
| bool | isIndexOutOfBounds (const int index) const |
| Method to verify if the given index is out of the range of the list size. More... | |
Abstract class from which all lists can be derived.
| T | Data Type of entries, that should be stored in the list. |
|
inlineexplicitprotected |
Constructor of an AbstractList Object.
| mutableList | true if the list should be mutable; false otherwise. |
|
protectedpure virtual |
Get a pointer to the element, stored at specific index.
| index | The index of the element to retrieve. |
Implemented in DoubleLinkedList< T >, and SingleLinkedList< T >.
|
inlineprotected |
Method to verify if the given index is out of the range of the list size.
| index | Index to check. |
|
inline |
Add a new entry at the end of the list.
| value | Value to add. |
|
pure virtual |
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.
| index | Index of the entry, where the value should be added. |
| value | Value of the new entry. |
Implemented in DoubleLinkedList< T >, and SingleLinkedList< T >.
|
inline |
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.
| index | Index of this list, at which all entries should be added. |
| list | Other list from where to copy the entries. |
|
inline |
Add all entries from the given list at the end of the list.
| list | Other list to copy from. |
|
inline |
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.
| index | Index of this list, at which all entries should be added. |
| arr | Array. |
| arrSize | Size of the array. |
|
inline |
Add all entries from an array.
| arr | Array. |
| arrSize | Size of array. |
|
inline |
Add a new entry at the beginning of the list.
| value | Value to add. |
|
inline |
Add a new entry at the end of the list.
| value | Value to add. |
|
inline |
Get the raw value at a specified index.
| index | Index of the element to get. |
|
inline |
Get the pointer to the mutable object at a specified index.
| index | Index of teh element to get. |
|
pure virtual |
Remove the entry at the given index.
| index | Index of element to remove. |
Implemented in DoubleLinkedList< T >, and SingleLinkedList< T >.
|
inline |
|
inline |
Get the number how many elements are saved in the list.
|
inline |
Check if the list is mutable.
|
inline |
Check if the list is empty.
|
inline |
Compare two lists whether their attributes and entries are equal.
| other | Second list to compare. |
|
inline |
Get the raw value at a specified index.
| index | Index of the element to get. |
|
inline |
Compare two lists whether their attributes and entries are equal.
| other | Second list to compare. |
|
inline |
Opposite of '=='.
| other | Other list to compare |
|
inline |
Add a new entry at the end of the list.
| value | Value to add. |
|
inline |
Add all entries from the given list at the end of the list.
| list | Other list to copy from. |
1.8.13