A class for the core of a doubly linked list (pointers to neighbours).
The pair of pointers to the next and previous list elements and the methods to access the pointers are inherited from the base class.
The constructor initialises the pointers to an empty list (both pointers point to the node).
Definition at line 229 of file lists.h.
void micro_os_plus::utils::double_list_links_base::initialize_once |
( |
void | | ) |
|
|
inherited |
Initialize the list only at first run.
- Parameters
- None.
- Returns
- Nothing.
If the statically allocated list is still in the initial uninitialised state (with both pointers nullptr
), initialise the list to the empty state, with both pointers pointing to itself.
For non-statically initialised lists, this method is ineffective, since the node is always initialised at construct time.
- Note
- This method must be manually called for statically allocated list before inserting elements, or performing any other operations.
Definition at line 72 of file lists.cpp.
void micro_os_plus::utils::double_list_links_base::unlink |
( |
void | | ) |
|
|
inherited |
Remove this node from the list.
- Returns
- Nothing.
Update both neighbours to point to each other, practically removing the node from the list.
The node is returned to the initial state (empty), with both pointers pointing to itself.
Definition at line 137 of file lists.cpp.