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

Declare TreapNode type with 80-byte pool allocation. More...

#include <treapNode.H>

Inheritance diagram for Aleph::TreapNode< Key >:
[legend]
Collaboration diagram for Aleph::TreapNode< 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
 
TreapNode *& getL () noexcept
 
TreapNode *& getR () noexcept
 
const TreapNodegetL () const noexcept
 
const TreapNodegetR () const noexcept
 
 TreapNode (const Key &k)
 
 TreapNode (Key &&k) noexcept
 
 TreapNode (const TreapNode_Data &control_data, const Key &k)
 
 TreapNode (const TreapNode &node)
 
 TreapNode (TreapNode &&node)
 
 TreapNode (const TreapNode_Data &control_data) noexcept
 
 TreapNode ()
 
void reset () noexcept
 
 TreapNode (SentinelCtor)
 
- Public Member Functions inherited from Aleph::TreapNode_Data
 TreapNode_Data () noexcept
 Default constructor sets maximum priority.
 
 TreapNode_Data (SentinelCtor) noexcept
 Sentinel constructor also uses maximum priority.
 
unsigned longgetPriority () noexcept
 Get reference to priority value.
 
void reset () noexcept
 Reset (no-op for treap nodes)
 

Static Public Member Functions

static TreapNodekey_to_node (Key &__key) noexcept
 

Static Public Attributes

static const size_t MaxHeight = 80
 
static TreapNode *const NullPtr = & TreapNode <Key>::sentinel_node
 
static TreapNode sentinel_node
 

Private Attributes

Key key = Key()
 
TreapNodelLink
 
TreapNoderLink
 

Detailed Description

template<typename Key>
class Aleph::TreapNode< Key >

Declare TreapNode type with 80-byte pool allocation.

Definition at line 108 of file treapNode.H.

Member Typedef Documentation

◆ key_type

template<typename Key >
typedef Key Aleph::TreapNode< Key >::key_type

Definition at line 108 of file treapNode.H.

◆ Key_Type

template<typename Key >
typedef Key Aleph::TreapNode< Key >::Key_Type

Definition at line 108 of file treapNode.H.

Constructor & Destructor Documentation

◆ TreapNode() [1/8]

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

Definition at line 108 of file treapNode.H.

◆ TreapNode() [2/8]

template<typename Key >
Aleph::TreapNode< Key >::TreapNode ( Key &&  k)
inlinenoexcept

Definition at line 108 of file treapNode.H.

◆ TreapNode() [3/8]

template<typename Key >
Aleph::TreapNode< Key >::TreapNode ( const TreapNode_Data control_data,
const Key &  k 
)
inline

Definition at line 108 of file treapNode.H.

◆ TreapNode() [4/8]

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

Definition at line 108 of file treapNode.H.

◆ TreapNode() [5/8]

template<typename Key >
Aleph::TreapNode< Key >::TreapNode ( TreapNode< Key > &&  node)
inline

Definition at line 108 of file treapNode.H.

◆ TreapNode() [6/8]

template<typename Key >
Aleph::TreapNode< Key >::TreapNode ( const TreapNode_Data control_data)
inlinenoexcept

Definition at line 108 of file treapNode.H.

◆ TreapNode() [7/8]

template<typename Key >
Aleph::TreapNode< Key >::TreapNode ( )
inline

Definition at line 108 of file treapNode.H.

◆ TreapNode() [8/8]

template<typename Key >
Aleph::TreapNode< Key >::TreapNode ( SentinelCtor  )
inline

Definition at line 108 of file treapNode.H.

Member Function Documentation

◆ get_key() [1/2]

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

Definition at line 108 of file treapNode.H.

◆ get_key() [2/2]

template<typename Key >
Key & Aleph::TreapNode< Key >::get_key ( )
inlinenoexcept

Definition at line 108 of file treapNode.H.

◆ getL() [1/2]

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

Definition at line 108 of file treapNode.H.

◆ getL() [2/2]

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

Definition at line 108 of file treapNode.H.

◆ getR() [1/2]

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

Definition at line 108 of file treapNode.H.

◆ getR() [2/2]

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

Definition at line 108 of file treapNode.H.

◆ key_to_node()

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

Definition at line 108 of file treapNode.H.

◆ reset()

template<typename Key >
void Aleph::TreapNode< Key >::reset ( )
inlinenoexcept

Definition at line 108 of file treapNode.H.

Member Data Documentation

◆ key

template<typename Key >
Key Aleph::TreapNode< Key >::key = Key()
private

Definition at line 108 of file treapNode.H.

◆ lLink

template<typename Key >
TreapNode* Aleph::TreapNode< Key >::lLink
private

Definition at line 108 of file treapNode.H.

◆ MaxHeight

template<typename Key >
const size_t Aleph::TreapNode< Key >::MaxHeight = 80
static

Definition at line 108 of file treapNode.H.

◆ NullPtr

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

Definition at line 108 of file treapNode.H.

◆ rLink

template<typename Key >
TreapNode* Aleph::TreapNode< Key >::rLink
private

Definition at line 108 of file treapNode.H.

◆ sentinel_node

template<typename Key >
TreapNode< Key > Aleph::TreapNode< Key >::sentinel_node
static

Definition at line 108 of file treapNode.H.


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