IntrusiveListNode class is the node that is needed for the object to be linked in IntrusiveList.
More...
#include "estd/IntrusiveList.hpp"
|
void | reset () |
| Resets the node to the same state as right after construction. More...
|
|
IntrusiveListNode class is the node that is needed for the object to be linked in IntrusiveList.
To some extent, this class can be considered to be a limited (raw) iterator.
The object that wants to be linked in IntrusiveList must contain a variable of this type - one for each intrusive list that will be used with object.
◆ IntrusiveListNode() [1/2]
constexpr estd::IntrusiveListNode::IntrusiveListNode |
( |
| ) |
|
|
inline |
◆ IntrusiveListNode() [2/2]
◆ ~IntrusiveListNode()
estd::IntrusiveListNode::~IntrusiveListNode |
( |
| ) |
|
|
inline |
◆ getNextNode()
- Returns
- reference to next node on the list
◆ getPreviousNode()
- Returns
- reference to previous node on the list
◆ isLinked()
bool estd::IntrusiveListNode::isLinked |
( |
| ) |
const |
|
inline |
- Returns
- true if the node is linked in some list, false otherwise
◆ link()
Links the node in the list before position.
- Note
- Access to this function is restricted only to functions from internal::IntrusiveListBase class
- Parameters
-
[in] | position | is a reference to node before which this node will be linked |
[in] | linkAccessKey | is used to limit access to this function |
◆ reset()
void estd::IntrusiveListNode::reset |
( |
| ) |
|
|
inlineprivate |
Resets the node to the same state as right after construction.
◆ swap()
Swaps contents with another node.
- Parameters
-
[in] | other | is a reference to IntrusiveListNode with which contents of this node will be swapped |
◆ unlink()
void estd::IntrusiveListNode::unlink |
( |
| ) |
|
|
inline |
Unlinks the node from the list.
◆ nextNode_
reference to next node on the list
◆ previousNode_
reference to previous node on the list
The documentation for this class was generated from the following file: