semf
|
Implements the previous()
and next()
functionality for every element in a list.
More...
#include <linkedlist.h>
Public Member Functions | |
virtual | ~Node ()=default |
T * | next () const |
Returns a pointer to the next element in a list. More... | |
void | setNext (T *next) |
Sets a pointer to the next element in a list. More... | |
T * | previous () const |
Returns a pointer to the previous element in a list. More... | |
void | setPrevious (T *previous) |
Sets a pointer to the previous element in a list. More... | |
bool | isInAList () |
Returns if a node is part of a LinkedList . More... | |
Implements the previous()
and next()
functionality for every element in a list.
A class type using LinkedList
has to inherit from this class.
Definition at line 51 of file linkedlist.h.
|
virtualdefault |
|
inline |
Returns if a node is part of a LinkedList
.
nullptr
. false
for is not in a LinkedList
, otherwise true
. Definition at line 97 of file linkedlist.h.
|
inline |
Returns a pointer to the next element in a list.
nullptr
. Definition at line 61 of file linkedlist.h.
|
inline |
Returns a pointer to the previous element in a list.
nullptr
. Definition at line 79 of file linkedlist.h.
|
inline |
Sets a pointer to the next element in a list.
next | The next element in a list. |
Definition at line 70 of file linkedlist.h.
|
inline |
Sets a pointer to the previous element in a list.
previous | The previous element in a list. |
Definition at line 88 of file linkedlist.h.