|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Basic binary tree node definitions. More...
#include <iostream>#include <stdexcept>#include <type_traits>#include <utility>#include <ahDefs.H>#include <ahAssert.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| struct | Aleph::Empty_Node |
| struct | Aleph::node_traits< Node > |
| class | Aleph::BinNode< Key > |
| Node for binary search tree. More... | |
| class | Aleph::BinNodeVtl< Key > |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::bin_node_detail |
Macros | |
| #define | INIT_CLASS_BINNODE(Name, height, Control_Data) |
| #define | DECLARE_BINNODE(Name, height, Control_Data) |
| Specify tree node for a binary tree. | |
| #define | DECLARE_BINNODE_SENTINEL(Name, height, Control_Data) |
| Specify tree node for a binary tree. | |
Typedefs | |
| template<class Node > | |
| using | Aleph::bin_node_detail::key_of_t = std::remove_cvref_t< decltype(std::declval< Node & >().get_key())> |
The type of the key of a node, as its get_key() gives it. | |
Functions | |
| template<class Node > | |
| Node | Aleph::bin_node_detail::header_from (Node &other) noexcept(nothrow_header_from_v< Node >) |
| Builds a header node of a tree that takes the nodes of another tree. | |
| template<class Compare > | |
| constexpr decltype(auto) | Aleph::bin_node_detail::compare_to_take (Compare &cmp) noexcept |
| What a tree that takes the nodes of another takes of its comparison criteria. | |
| template<class Node > | |
| constexpr Node *& | Aleph::LLINK (Node *p) noexcept |
| Return a pointer to left subtree. | |
| template<class Node > | |
| constexpr const Node * | Aleph::LLINK (const Node *p) noexcept |
| template<class Node > | |
| constexpr Node *& | Aleph::RLINK (Node *p) noexcept |
| Return the right tree of p. | |
| template<class Node > | |
| constexpr const Node * | Aleph::RLINK (const Node *p) noexcept |
| template<class Node > | |
| constexpr Node::Key_Type & | Aleph::KEY (Node *p) noexcept |
| Return a modifiable reference to the key stored in the node. | |
| template<class Node > | |
| constexpr const Node::Key_Type & | Aleph::KEY (const Node *p) noexcept |
Variables | |
| template<typename Key > | |
| constexpr bool | Aleph::bin_node_detail::nothrow_default_key_v |
Whether building a Key by default throws nothing. | |
| template<class Node > | |
| constexpr bool | Aleph::bin_node_detail::nothrow_from_key_of_v |
| Whether a node is built without throwing from the key of another node, which is moved. | |
| template<class Node > | |
| constexpr bool | Aleph::bin_node_detail::nothrow_header_from_v |
| Whether header_from() builds a header node without throwing. | |
| template<class Compare > | |
| constexpr bool | Aleph::bin_node_detail::nothrow_compare_taken_v |
| Whether a tree takes without throwing the comparison criteria that compare_to_take() gives it. | |
Basic binary tree node definitions.
This file provides the fundamental binary tree node templates including BinNode (basic node) and BinNodeVtl (node with virtual destructor). These serve as building blocks for all binary tree implementations.
Definition in file tpl_binNode.H.
| #define INIT_CLASS_BINNODE | ( | Name, | |
| height, | |||
| Control_Data | |||
| ) |
Definition at line 285 of file tpl_binNode.H.