Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
RbNode< Key > Class Template Reference

Declare RbNode type with 128-byte pool allocation. More...

#include <rbNode.H>

Inheritance diagram for RbNode< Key >:
[legend]
Collaboration diagram for RbNode< Key >:
[legend]

Public Types

typedef Key key_type
 
typedef Key Key_Type
 
typedef Key key_type
 
typedef Key Key_Type
 

Public Member Functions

Key & get_key () noexcept
 
const Key & get_key () const noexcept
 
RbNode *& getL () noexcept
 
RbNode *& getR () noexcept
 
const RbNodegetL () const noexcept
 
const RbNodegetR () const noexcept
 
 RbNode (const Key &k)
 
 RbNode (Key &&k) noexcept
 
 RbNode (const RbNode_Data &control_data, const Key &k)
 
 RbNode (const RbNode &node)
 
 RbNode (RbNode &&node)
 
 RbNode (const RbNode_Data &control_data) noexcept
 
 RbNode ()
 
void reset () noexcept
 
 RbNode (SentinelCtor)
 
Key & get_key () noexcept
 
const Key & get_key () const noexcept
 
RbNode *& getL () noexcept
 
RbNode *& getR () noexcept
 
const RbNodegetL () const noexcept
 
const RbNodegetR () const noexcept
 
 RbNode (const Key &k)
 
 RbNode (Key &&k) noexcept
 
 RbNode (const RbNode_Data &control_data, const Key &k)
 
 RbNode (const RbNode &node)
 
 RbNode (RbNode &&node)
 
 RbNode (const RbNode_Data &control_data) noexcept
 
 RbNode ()
 
void reset () noexcept
 
 RbNode (SentinelCtor)
 
- Public Member Functions inherited from RbNode_Data
 RbNode_Data ()
 Default constructor creates a red node.
 
 RbNode_Data (SentinelCtor)
 Sentinel constructor creates a black node.
 
ColorgetColor ()
 Get reference to 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 RbNodekey_to_node (Key &__key) noexcept
 
static RbNodekey_to_node (Key &__key) noexcept
 

Static Public Attributes

static const size_t MaxHeight = 128
 
static RbNode *const NullPtr = & RbNode <Key>::sentinel_node
 
static RbNode sentinel_node
 

Private Attributes

Key key = Key()
 
RbNodelLink
 
RbNoderLink
 

Detailed Description

template<typename Key>
class RbNode< Key >

Declare RbNode type with 128-byte pool allocation.

Definition at line 109 of file rbNode.H.

Member Typedef Documentation

◆ key_type [1/2]

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

Definition at line 109 of file rbNode.H.

◆ Key_Type [1/2]

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

Definition at line 109 of file rbNode.H.

◆ key_type [2/2]

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

Definition at line 75 of file tpl_rbNode.H.

◆ Key_Type [2/2]

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

Definition at line 75 of file tpl_rbNode.H.

Constructor & Destructor Documentation

◆ RbNode() [1/16]

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

Definition at line 109 of file rbNode.H.

◆ RbNode() [2/16]

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

Definition at line 109 of file rbNode.H.

◆ RbNode() [3/16]

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

Definition at line 109 of file rbNode.H.

◆ RbNode() [4/16]

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

Definition at line 109 of file rbNode.H.

◆ RbNode() [5/16]

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

Definition at line 109 of file rbNode.H.

◆ RbNode() [6/16]

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

Definition at line 109 of file rbNode.H.

◆ RbNode() [7/16]

template<typename Key >
RbNode< Key >::RbNode ( )
inline

Definition at line 109 of file rbNode.H.

◆ RbNode() [8/16]

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

Definition at line 109 of file rbNode.H.

◆ RbNode() [9/16]

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

Definition at line 75 of file tpl_rbNode.H.

◆ RbNode() [10/16]

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

Definition at line 75 of file tpl_rbNode.H.

◆ RbNode() [11/16]

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

Definition at line 75 of file tpl_rbNode.H.

◆ RbNode() [12/16]

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

Definition at line 75 of file tpl_rbNode.H.

◆ RbNode() [13/16]

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

Definition at line 75 of file tpl_rbNode.H.

◆ RbNode() [14/16]

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

Definition at line 75 of file tpl_rbNode.H.

◆ RbNode() [15/16]

template<typename Key >
RbNode< Key >::RbNode ( )
inline

Definition at line 75 of file tpl_rbNode.H.

◆ RbNode() [16/16]

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

Definition at line 75 of file tpl_rbNode.H.

Member Function Documentation

◆ get_key() [1/4]

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

Definition at line 109 of file rbNode.H.

◆ get_key() [2/4]

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

Definition at line 75 of file tpl_rbNode.H.

◆ get_key() [3/4]

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

Definition at line 109 of file rbNode.H.

◆ get_key() [4/4]

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

Definition at line 75 of file tpl_rbNode.H.

◆ getL() [1/4]

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

Definition at line 109 of file rbNode.H.

◆ getL() [2/4]

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

Definition at line 75 of file tpl_rbNode.H.

◆ getL() [3/4]

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

Definition at line 109 of file rbNode.H.

◆ getL() [4/4]

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

Definition at line 75 of file tpl_rbNode.H.

◆ getR() [1/4]

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

Definition at line 109 of file rbNode.H.

◆ getR() [2/4]

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

Definition at line 75 of file tpl_rbNode.H.

◆ getR() [3/4]

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

Definition at line 109 of file rbNode.H.

◆ getR() [4/4]

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

Definition at line 75 of file tpl_rbNode.H.

◆ key_to_node() [1/2]

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

Definition at line 109 of file rbNode.H.

◆ key_to_node() [2/2]

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

Definition at line 75 of file tpl_rbNode.H.

◆ reset() [1/2]

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

Definition at line 109 of file rbNode.H.

Referenced by Aleph::HtdRbTree< Key, Compare >::remove().

◆ reset() [2/2]

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

Definition at line 75 of file tpl_rbNode.H.

Member Data Documentation

◆ key

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

Definition at line 109 of file rbNode.H.

◆ lLink

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

Definition at line 109 of file rbNode.H.

◆ MaxHeight

template<typename Key >
static const size_t RbNode< Key >::MaxHeight = 128
static

Definition at line 109 of file rbNode.H.

◆ NullPtr

◆ rLink

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

Definition at line 109 of file rbNode.H.

◆ sentinel_node

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

Definition at line 109 of file rbNode.H.


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