Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Short_RbNode< Key > Class Template Reference
Inheritance diagram for Short_RbNode< Key >:
[legend]
Collaboration diagram for Short_RbNode< Key >:
[legend]

Public Types

typedef Key key_type
 
typedef Key Key_Type
 

Public Member Functions

Key & get_key () noexcept
 
const Key & get_key () const noexcept
 
Short_RbNode *& getL () noexcept
 
Short_RbNode *& getR () noexcept
 
const Short_RbNode * getL () const noexcept
 
const Short_RbNode * getR () const noexcept
 
 Short_RbNode (const Key &k)
 
 Short_RbNode (Key &&k) noexcept(std::is_nothrow_move_constructible_v< Key > and std::is_nothrow_default_constructible_v< RbNode_Data >)
 
 Short_RbNode (const RbNode_Data &control_data, const Key &k)
 
 Short_RbNode (const Short_RbNode &node)
 
 Short_RbNode (Short_RbNode &&node)
 
 Short_RbNode (const RbNode_Data &control_data) noexcept(Aleph::bin_node_detail::nothrow_default_key_v< Key > and std::is_nothrow_copy_constructible_v< RbNode_Data >)
 
 Short_RbNode () noexcept(Aleph::bin_node_detail::nothrow_default_key_v< Key > and std::is_nothrow_default_constructible_v< RbNode_Data >)
 
void reset () noexcept
 
 Short_RbNode (SentinelCtor)
 
- Public Member Functions inherited from RbNode_Data
 RbNode_Data () noexcept
 Default constructor creates a red node.
 
 RbNode_Data (SentinelCtor) noexcept
 Sentinel constructor creates a black node.
 
Color & getColor ()
 Get reference to node color.
 
Color getColor () const
 Get node color.
 
void reset ()
 Reset node to red (for reinsertion)
 
 RbNode_Data () noexcept
 
 RbNode_Data (SentinelCtor) noexcept
 
unsigned char & getColor () noexcept
 
void reset () noexcept
 

Static Public Member Functions

static Short_RbNode * key_to_node (Key &__key) noexcept
 

Static Public Attributes

static const size_t MaxHeight = 4
 
static Short_RbNode *const NullPtr = & Short_RbNode <Key>::sentinel_node
 
static Short_RbNode sentinel_node
 

Private Attributes

Key key = Key()
 
Short_RbNode * lLink
 
Short_RbNode * rLink
 

Detailed Description

template<typename Key>
class Short_RbNode< Key >

Definition at line 58 of file tree_path_capacity_test.cc.

Member Typedef Documentation

◆ key_type

template<typename Key >
typedef Key Short_RbNode< Key >::key_type

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Key_Type

template<typename Key >
typedef Key Short_RbNode< Key >::Key_Type

Definition at line 58 of file tree_path_capacity_test.cc.

Constructor & Destructor Documentation

◆ Short_RbNode() [1/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( const Key &  k)
inline

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Short_RbNode() [2/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( Key &&  k)
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Short_RbNode() [3/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( const RbNode_Data &  control_data,
const Key &  k 
)
inline

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Short_RbNode() [4/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( const Short_RbNode< Key > &  node)
inline

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Short_RbNode() [5/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( Short_RbNode< Key > &&  node)
inline

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Short_RbNode() [6/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( const RbNode_Data &  control_data)
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Short_RbNode() [7/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( )
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ Short_RbNode() [8/8]

template<typename Key >
Short_RbNode< Key >::Short_RbNode ( SentinelCtor  )
inline

Definition at line 58 of file tree_path_capacity_test.cc.

Member Function Documentation

◆ get_key() [1/2]

template<typename Key >
const Key & Short_RbNode< Key >::get_key ( ) const
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ get_key() [2/2]

template<typename Key >
Key & Short_RbNode< Key >::get_key ( )
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ getL() [1/2]

template<typename Key >
const Short_RbNode * Short_RbNode< Key >::getL ( ) const
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ getL() [2/2]

template<typename Key >
Short_RbNode *& Short_RbNode< Key >::getL ( )
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ getR() [1/2]

template<typename Key >
const Short_RbNode * Short_RbNode< Key >::getR ( ) const
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ getR() [2/2]

template<typename Key >
Short_RbNode *& Short_RbNode< Key >::getR ( )
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ key_to_node()

template<typename Key >
static Short_RbNode * Short_RbNode< Key >::key_to_node ( Key &  __key)
inlinestaticnoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

◆ reset()

template<typename Key >
void Short_RbNode< Key >::reset ( )
inlinenoexcept

Definition at line 58 of file tree_path_capacity_test.cc.

Member Data Documentation

◆ key

template<typename Key >
Key Short_RbNode< Key >::key = Key()
private

Definition at line 58 of file tree_path_capacity_test.cc.

◆ lLink

template<typename Key >
Short_RbNode* Short_RbNode< Key >::lLink
private

Definition at line 58 of file tree_path_capacity_test.cc.

◆ MaxHeight

template<typename Key >
const size_t Short_RbNode< Key >::MaxHeight = 4
static

Definition at line 58 of file tree_path_capacity_test.cc.

◆ NullPtr

template<typename Key >
Short_RbNode< Key > *const Short_RbNode< Key >::NullPtr = & Short_RbNode <Key>::sentinel_node
static

Definition at line 58 of file tree_path_capacity_test.cc.

◆ rLink

template<typename Key >
Short_RbNode* Short_RbNode< Key >::rLink
private

Definition at line 58 of file tree_path_capacity_test.cc.

◆ sentinel_node

template<typename Key >
Short_RbNode< Key > Short_RbNode< Key >::sentinel_node
static

Definition at line 58 of file tree_path_capacity_test.cc.


The documentation for this class was generated from the following file: