|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Interval tree node with virtual destructor. More...
#include <tpl_interval_tree.H>
Public Types | |
| using | Endpoint = interval_endpoint_t< Key > |
| using | Data = Interval_Tree_Node_Data< Endpoint > |
| using | key_type = Key |
| using | Key_Type = Key |
Public Member Functions | |
| Key & | get_key () noexcept |
| const Key & | get_key () const noexcept |
| Interval_Tree_NodeVtl *& | getL () noexcept |
| Interval_Tree_NodeVtl *& | getR () noexcept |
| const Interval_Tree_NodeVtl * | getL () const noexcept |
| const Interval_Tree_NodeVtl * | getR () const noexcept |
| Interval_Tree_NodeVtl (const Key &k) | |
| Interval_Tree_NodeVtl (Key &&k) noexcept(std::is_nothrow_move_constructible_v< Key > and std::is_nothrow_default_constructible_v< Data > and std::is_nothrow_copy_assignable_v< Endpoint >) | |
| Interval_Tree_NodeVtl (const Interval_Tree_NodeVtl &node) | |
| Interval_Tree_NodeVtl (Interval_Tree_NodeVtl &&node) noexcept(std::is_nothrow_move_constructible_v< Key > and std::is_nothrow_move_constructible_v< Data >) | |
| Interval_Tree_NodeVtl () | |
| virtual | ~Interval_Tree_NodeVtl ()=default |
| Virtual destructor. | |
| void | reset () noexcept(std::is_nothrow_copy_assignable_v< Endpoint >) |
| Leave the node as one that is in no tree: without links, and with the high endpoint of its interval as its maximum. | |
Public Member Functions inherited from Aleph::Interval_Tree_Node_Data< interval_endpoint_t< Key > > | |
| Interval_Tree_Node_Data () noexcept(std::is_nothrow_default_constructible_v< interval_endpoint_t< Key > >) | |
| Interval_Tree_Node_Data (SentinelCtor) noexcept(std::is_nothrow_default_constructible_v< interval_endpoint_t< Key > >) | |
| unsigned long & | getPriority () noexcept |
| interval_endpoint_t< Key > & | getMaxEndpoint () noexcept |
| const interval_endpoint_t< Key > & | getMaxEndpoint () const noexcept |
Static Public Attributes | |
| static constexpr size_t | MaxHeight = 80 |
| static Interval_Tree_NodeVtl *const | NullPtr = &Interval_Tree_NodeVtl<Key>::sentinel_node |
Private Member Functions | |
| Interval_Tree_NodeVtl (SentinelCtor) | |
Private Attributes | |
| Key | key = Key() |
| Interval_Tree_NodeVtl * | lLink |
| Interval_Tree_NodeVtl * | rLink |
Static Private Attributes | |
| static Interval_Tree_NodeVtl | sentinel_node |
| The sentinel node instance (virtual version). | |
Additional Inherited Members | |
Static Public Member Functions inherited from Aleph::Interval_Tree_Node_Data< interval_endpoint_t< Key > > | |
| static void | reset () noexcept |
Interval tree node with virtual destructor.
| Key | must be Interval<T>. |
Definition at line 397 of file tpl_interval_tree.H.
| using Aleph::Interval_Tree_NodeVtl< Key >::Data = Interval_Tree_Node_Data<Endpoint> |
Definition at line 402 of file tpl_interval_tree.H.
| using Aleph::Interval_Tree_NodeVtl< Key >::Endpoint = interval_endpoint_t<Key> |
Definition at line 401 of file tpl_interval_tree.H.
| using Aleph::Interval_Tree_NodeVtl< Key >::key_type = Key |
Definition at line 407 of file tpl_interval_tree.H.
| using Aleph::Interval_Tree_NodeVtl< Key >::Key_Type = Key |
Definition at line 408 of file tpl_interval_tree.H.
|
inline |
Definition at line 426 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_Node_Data< interval_endpoint_t< Key > >::getMaxEndpoint().
|
inlinenoexcept |
Definition at line 432 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_Node_Data< interval_endpoint_t< Key > >::getMaxEndpoint(), and Aleph::Interval_Tree_NodeVtl< Key >::key.
|
inline |
Definition at line 441 of file tpl_interval_tree.H.
|
inlinenoexcept |
Definition at line 448 of file tpl_interval_tree.H.
|
inline |
Definition at line 457 of file tpl_interval_tree.H.
|
virtualdefault |
Virtual destructor.
|
inlineprivate |
Definition at line 479 of file tpl_interval_tree.H.
|
inlinenoexcept |
Definition at line 419 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_NodeVtl< Key >::key.
|
inlinenoexcept |
Definition at line 418 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_NodeVtl< Key >::key.
|
inlinenoexcept |
Definition at line 423 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_NodeVtl< Key >::lLink.
|
inlinenoexcept |
Definition at line 421 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_NodeVtl< Key >::lLink.
|
inlinenoexcept |
Definition at line 424 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_NodeVtl< Key >::rLink.
|
inlinenoexcept |
Definition at line 422 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_NodeVtl< Key >::rLink.
|
inlinenoexcept |
Leave the node as one that is in no tree: without links, and with the high endpoint of its interval as its maximum.
| what | the copy assignment of an endpoint throws, with the links as they were. |
Definition at line 471 of file tpl_interval_tree.H.
References Aleph::Interval_Tree_Node_Data< interval_endpoint_t< Key > >::getMaxEndpoint(), Aleph::Interval_Tree_NodeVtl< Key >::key, Aleph::Interval_Tree_NodeVtl< Key >::lLink, Aleph::Interval_Tree_NodeVtl< Key >::NullPtr, Aleph::Interval_Tree_Node_Data< T >::reset(), and Aleph::Interval_Tree_NodeVtl< Key >::rLink.
|
private |
Definition at line 411 of file tpl_interval_tree.H.
Referenced by Aleph::Interval_Tree_NodeVtl< Key >::Interval_Tree_NodeVtl(), Aleph::Interval_Tree_NodeVtl< Key >::get_key(), Aleph::Interval_Tree_NodeVtl< Key >::get_key(), and Aleph::Interval_Tree_NodeVtl< Key >::reset().
|
private |
Definition at line 412 of file tpl_interval_tree.H.
Referenced by Aleph::Interval_Tree_NodeVtl< Key >::getL(), Aleph::Interval_Tree_NodeVtl< Key >::getL(), and Aleph::Interval_Tree_NodeVtl< Key >::reset().
|
staticconstexpr |
Definition at line 404 of file tpl_interval_tree.H.
|
static |
Definition at line 405 of file tpl_interval_tree.H.
Referenced by Aleph::Interval_Tree_NodeVtl< Key >::reset().
|
private |
Definition at line 413 of file tpl_interval_tree.H.
Referenced by Aleph::Interval_Tree_NodeVtl< Key >::getR(), Aleph::Interval_Tree_NodeVtl< Key >::getR(), and Aleph::Interval_Tree_NodeVtl< Key >::reset().
|
staticprivate |
The sentinel node instance (virtual version).
Definition at line 415 of file tpl_interval_tree.H.