doubly-list-links.cpp File
C++ source file with the implementations for the µOS++ doubly linked list link node classes. More...
Included Headers
Namespaces Index
| namespace | micro_os_plus |
|
The primary namespace for the µOS++ framework. More... | |
| namespace | utils |
|
The µOS++ utilities definitions. More... | |
Description
C++ source file with the implementations for the µOS++ doubly linked list link node classes.
The doubly-list-links.cpp source file contains the C++ implementations of the non-inline methods for the doubly_list_links_base and static_doubly_list_links classes, providing an efficient and lightweight linked list management system tailored for embedded applications.
The class definitions are in the doubly-list-links.h file.
File Listing
The file content with the documentation metadata removed is:
28#include "micro-os-plus/utils/lists/doubly-list-links.h"
43namespace micro_os_plus::utils
56 doubly_list_links_base::initialised (void) const noexcept
60 assert (previous_ == nullptr);
61 assert (next_ == nullptr);
81 doubly_list_links_base::initialise_once (void) noexcept
83 if (!initialised ())
85 initialise ();
101 doubly_list_links_base::link_next (doubly_list_links_base* node) noexcept
108 assert (next_ != nullptr);
109 assert (next_->previous_ != nullptr);
113 node->next_ = next_;
115 next_->previous_ = node;
116 next_ = node;
129 doubly_list_links_base::link_previous (doubly_list_links_base* node) noexcept
136 assert (previous_ != nullptr);
137 assert (previous_->next_ != nullptr);
141 node->previous_ = previous_;
143 previous_->next_ = node;
144 previous_ = node;
155 doubly_list_links_base::unlink (void) noexcept
160 assert (previous_ != nullptr);
161 assert (next_ != nullptr);
171 initialise ();
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.17.0.