![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
The tree node of the intrusive container. User type can be derived from this class to support intrusive containers. The parent_ points to itself for the root of a tree an indicator.
More...
Public Member Functions | |
| constexpr auto | is_linked () const noexcept -> bool |
| Check if the element is linked to a container. | |
Friends | |
| constexpr auto | get_left_link (binary_tree_node &element, Tag, detail::binary_tree_node_pass_key) noexcept -> binary_tree_node *& |
| Getter to the left_ member. pass_key idiom is used to grant access only to the intrusive priority queue. | |
| constexpr auto | get_parent_link (binary_tree_node &element, Tag, detail::binary_tree_node_pass_key) noexcept -> binary_tree_node *& |
| Getter to the parent_ member. pass_key idiom is used to grant access only to the intrusive priority queue. | |
| constexpr auto | get_right_link (binary_tree_node &element, Tag, detail::binary_tree_node_pass_key) noexcept -> binary_tree_node *& |
| Getter to the right_ member. pass_key idiom is used to grant access only to the intrusive priority queue. | |
The tree node of the intrusive container. User type can be derived from this class to support intrusive containers. The parent_ points to itself for the root of a tree an indicator.
| Tag | The tag of the element. Used to support adding the same element to multiple intrusive containers. |
|
inlineconstexprnoexcept |
Check if the element is linked to a container.
true if the element is linked to a container, false
|
friend |
Getter to the left_ member. pass_key idiom is used to grant access only to the intrusive priority queue.
| element | The element to get the left_ member from |
|
friend |
Getter to the parent_ member. pass_key idiom is used to grant access only to the intrusive priority queue.
| element | The element to get the parent_ member from |
|
friend |
Getter to the right_ member. pass_key idiom is used to grant access only to the intrusive priority queue.
| element | The element to get the right_ member from |