IntrusiveListBase class provides base functionalities for IntrusiveList class, but without any knowledge about types.
More...
#include "estd/IntrusiveList.hpp"
IntrusiveListBase class provides base functionalities for IntrusiveList class, but without any knowledge about types.
This class tries to provide an interface similar to std::list.
◆ IntrusiveListBase()
constexpr estd::internal::IntrusiveListBase::IntrusiveListBase |
( |
| ) |
|
|
inline |
◆ ~IntrusiveListBase()
estd::internal::IntrusiveListBase::~IntrusiveListBase |
( |
| ) |
|
|
inline |
◆ begin() [1/2]
- Returns
- reference to first node on the list
◆ begin() [2/2]
- Returns
- const reference to first node on the list
◆ cbegin()
- Returns
- const reference to first node on the list
◆ cend()
- Returns
- const reference to "one past the last" node on the list
◆ clear()
void estd::internal::IntrusiveListBase::clear |
( |
| ) |
|
|
inline |
Unlinks all nodes from the list.
◆ empty()
bool estd::internal::IntrusiveListBase::empty |
( |
| ) |
const |
|
inline |
- Returns
- true is the list is empty, false otherwise
◆ end() [1/2]
- Returns
- reference to "one past the last" node on the list
◆ end() [2/2]
- Returns
- const reference to "one past the last" node on the list
◆ erase()
Unlinks the node at position from the list.
- Note
- No instance of the list is needed for this operation.
- Parameters
-
[in] | position | is a reference to the node that will be unlinked from the list |
- Returns
- reference to the node that was following the node which was unlinked
◆ insert()
Links the node in the list before position.
- Note
- No instance of the list is needed for this operation.
- Parameters
-
[in] | position | is a reference to node before which newNode will be linked |
[in] | newNode | is a reference to node that will be linked in the list |
◆ pop_back()
void estd::internal::IntrusiveListBase::pop_back |
( |
| ) |
|
|
inline |
Unlinks the last node from the list.
◆ pop_front()
void estd::internal::IntrusiveListBase::pop_front |
( |
| ) |
|
|
inline |
Unlinks the first node from the list.
◆ push_back()
Links the node at the end of the list.
- Parameters
-
[in] | newNode | is a reference to node that will be linked in the list |
◆ push_front()
Links the node at the beginning of the list.
- Parameters
-
[in] | newNode | is a reference to node that will be linked in the list |
◆ splice()
Transfers the node from one list to another list before position.
- Note
- No instance of any list is needed for this operation.
- Parameters
-
[in] | position | is a reference to node before which splicedNode will be linked |
[in] | splicedNode | is a reference to node that will be spliced from one list to another |
◆ swap()
Swaps contents with another list.
- Parameters
-
[in] | other | is a reference to IntrusiveListBase with which contents of this list will be swapped |
◆ rootNode_
root node of the intrusive list
The documentation for this class was generated from the following file: