|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Binary search tree with nodes without virtual destructors,. More...
#include <tpl_binTree.H>
Public Types | |
| using | Base = GenBinTree< BinNode, Key, Compare > |
Public Types inherited from Aleph::GenBinTree< NodeType, Key, Compare > | |
| using | Node = NodeType< Key > |
Additional Inherited Members | |
Public Member Functions inherited from Aleph::GenBinTree< NodeType, Key, Compare > | |
| GenBinTree (const GenBinTree &)=delete | |
| GenBinTree & | operator= (const GenBinTree &)=delete |
| void | swap (GenBinTree &tree) noexcept(std::is_nothrow_swappable_v< Compare >) |
Swaps in constant time the nodes and the comparison criteria of this and tree. | |
| Compare & | key_comp () noexcept |
| return the comparison criteria | |
| Compare & | get_compare () noexcept |
See key_comp(). | |
| GenBinTree () noexcept(std::is_nothrow_default_constructible_v< Node > and std::is_nothrow_default_constructible_v< Compare > and std::is_nothrow_constructible_v< Compare, Compare & >) | |
| Builds an empty tree with a comparison criteria built by default. | |
| GenBinTree (Compare _cmp) noexcept(std::is_nothrow_default_constructible_v< Node > and std::is_nothrow_constructible_v< Compare, Compare & >) | |
Builds an empty tree with the comparison criteria _cmp. | |
| GenBinTree (GenBinTree &&tree) noexcept(bin_node_detail::nothrow_header_from_v< Node > and bin_node_detail::nothrow_compare_taken_v< Compare >) | |
Takes the nodes and the comparison criteria of tree, which is left empty and can take nodes again. | |
| Node * | search (const Key &key) const noexcept(nothrow_compare_copy_v< Compare, Key >) |
| Search a key. | |
| virtual | ~GenBinTree ()=default |
| bool | verify () const |
Return true if the tree is a consistent (correct) binary search tree. | |
| Node *& | getRoot () noexcept |
| Return the root of tree. | |
| Node * | getRoot () const noexcept |
| Return the root of tree. | |
| bool | verifyBin () const |
See verify(). | |
| Node * | insert (Node *p) noexcept(nothrow_compare_copy_v< Compare, Key >) |
| Insert a node in the tree. | |
| Node * | insert_dup (Node *p) noexcept(nothrow_compare_copy_v< Compare, Key >) |
| Insert a node in the tree. | |
| Node * | search_or_insert (Node *p) noexcept(nothrow_compare_copy_v< Compare, Key >) |
| Search or insert a key. | |
| bool | split (const Key &key, GenBinTree &l, GenBinTree &r) noexcept(nothrow_compare_copy_v< Compare, Key >) |
| Split the tree according to a key. | |
| void | split_dup (const Key &key, GenBinTree &l, GenBinTree &r) noexcept(nothrow_compare_v< Compare, Key >) |
| Split the tree according to a key that could be in the tree. | |
| Node * | remove (const Key &key) noexcept(nothrow_compare_copy_v< Compare, Key >) |
| Remove a key from the tree. | |
| void | join (GenBinTree &tree, GenBinTree &dup) noexcept |
Join tree with this. | |
| void | join_dup (GenBinTree &t) noexcept |
Join this with t independently of the presence of duplicated keys. | |
| void | join_exclusive (GenBinTree &t) noexcept |
Join exclusive of this with t | |
Binary search tree with nodes without virtual destructors,.
Definition at line 495 of file tpl_binTree.H.
| using Aleph::BinTree< Key, Compare >::Base = GenBinTree<BinNode, Key, Compare> |
Definition at line 497 of file tpl_binTree.H.