TaskSched
|
A simple linked list implementation. More...
#include <SimpleList.h>
Classes | |
class | const_iterator |
Iterator class for SimpleList. More... | |
class | iterator |
Public Member Functions | |
SimpleList () | |
Construct a new empty SimpleList object. More... | |
~SimpleList () | |
Destroy the SimpleList object and free all allocated memory. More... | |
void | push_back (const T &value) |
Add a new element to the end of the list. More... | |
void | pop_front () |
Remove the first element from the list. More... | |
T | read () const |
Read the current element and move the read position to the next element. More... | |
void | rewind () const |
Reset the read position to the beginning of the list. More... | |
bool | is_exhausted () const |
Check if all elements have been read. More... | |
size_t | get_size () const |
Get the number of elements in the list. More... | |
void | clear () |
Remove all elements from the list. More... | |
const_iterator | cbegin () const |
Get a const_iterator pointing to the beginning of the list. More... | |
const_iterator | cend () const |
Get a const_iterator pointing to the end of the list. More... | |
iterator | begin () const |
Get an iterator pointing to the beginning of the list. More... | |
iterator | end () const |
Get an iterator pointing to the end of the list. More... | |
A simple linked list implementation.
T | The type of elements stored in the list |
Definition at line 11 of file SimpleList.h.
|
inline |
Construct a new empty SimpleList object.
Definition at line 37 of file SimpleList.h.
|
inline |
Destroy the SimpleList object and free all allocated memory.
Definition at line 42 of file SimpleList.h.
References SimpleList< T >::clear().
|
inline |
Get an iterator pointing to the beginning of the list.
Definition at line 273 of file SimpleList.h.
Referenced by Sched::run().
|
inline |
Get a const_iterator pointing to the beginning of the list.
Definition at line 204 of file SimpleList.h.
|
inline |
Get a const_iterator pointing to the end of the list.
Definition at line 211 of file SimpleList.h.
|
inline |
Remove all elements from the list.
Definition at line 123 of file SimpleList.h.
Referenced by SimpleList< T >::~SimpleList().
|
inline |
Get an iterator pointing to the end of the list.
Definition at line 280 of file SimpleList.h.
Referenced by Sched::run().
|
inline |
Get the number of elements in the list.
Definition at line 116 of file SimpleList.h.
Referenced by Sched::getSize().
|
inline |
Check if all elements have been read.
Definition at line 107 of file SimpleList.h.
|
inline |
Remove the first element from the list.
Definition at line 65 of file SimpleList.h.
|
inline |
Add a new element to the end of the list.
value | The value to be added |
Definition at line 51 of file SimpleList.h.
Referenced by Sched::addTask().
|
inline |
Read the current element and move the read position to the next element.
Definition at line 86 of file SimpleList.h.
|
inline |
Reset the read position to the beginning of the list.
Definition at line 98 of file SimpleList.h.