Intrusive, double-linked, circular list node.
More...
#include </home/travis/build/forGGe/theCore/lib/containers/export/ecl/list.hpp>
Intrusive, double-linked, circular list node.
Any class can embed intrusive list node by composing it.
◆ list_node() [1/2]
ecl::list_node::list_node |
( |
| ) |
|
|
inline |
Constructs emtpy list node.
◆ ~list_node()
ecl::list_node::~list_node |
( |
| ) |
|
|
inline |
Destructs list node, unlinking itself from any list.
◆ list_node() [2/2]
ecl::list_node::list_node |
( |
const list_node & |
| ) |
|
|
delete |
◆ add_after()
void ecl::list_node::add_after |
( |
list_node & |
node | ) |
|
|
inline |
Adds a node after this node.
- Parameters
-
[in] | node | Node to add in the list |
◆ add_before()
void ecl::list_node::add_before |
( |
list_node & |
node | ) |
|
|
inline |
Adds a node before this node.
- Parameters
-
[in] | node | Node to add in the list |
◆ unlink()
void ecl::list_node::unlink |
( |
| ) |
|
|
inline |
Unlinks this node from a list.
Has no effect if list is empty.
◆ linked()
bool ecl::list_node::linked |
( |
| ) |
const |
|
inline |
Checks if node is connected to any other node.
◆ next()
Returns a pointer to a next list node.
◆ prev()
Returns a pointer to a previous list node.
◆ operator=()
The documentation for this class was generated from the following file: