Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Cnode::Pending_Path_Guard Class Reference

Own standalone nodes until an insertion path is committed. More...

Collaboration diagram for Aleph::Cnode::Pending_Path_Guard:
[legend]

Public Member Functions

 Pending_Path_Guard (const size_t count)
 
 ~Pending_Path_Guard ()
 
Cnode * operator[] (const size_t i) const noexcept
 
void set (const size_t i, Cnode *node) const noexcept
 
void release_nodes () noexcept
 

Private Attributes

Cnode ** nodes_ = nullptr
 
size_t count_ = 0
 
bool owns_nodes_ = true
 

Detailed Description

Own standalone nodes until an insertion path is committed.

Definition at line 243 of file prefix-tree.H.

Constructor & Destructor Documentation

◆ Pending_Path_Guard()

Aleph::Cnode::Pending_Path_Guard::Pending_Path_Guard ( const size_t  count)
inlineexplicit

Definition at line 250 of file prefix-tree.H.

References count_, and nodes_.

◆ ~Pending_Path_Guard()

Aleph::Cnode::Pending_Path_Guard::~Pending_Path_Guard ( )
inline

Definition at line 256 of file prefix-tree.H.

References count_, nodes_, and owns_nodes_.

Member Function Documentation

◆ operator[]()

Cnode * Aleph::Cnode::Pending_Path_Guard::operator[] ( const size_t  i) const
inlinenoexcept

Definition at line 264 of file prefix-tree.H.

References nodes_.

◆ release_nodes()

void Aleph::Cnode::Pending_Path_Guard::release_nodes ( )
inlinenoexcept

Definition at line 274 of file prefix-tree.H.

References owns_nodes_.

Referenced by Aleph::Cnode::insert_word().

◆ set()

void Aleph::Cnode::Pending_Path_Guard::set ( const size_t  i,
Cnode *  node 
) const
inlinenoexcept

Definition at line 269 of file prefix-tree.H.

References nodes_.

Referenced by Aleph::Cnode::insert_word().

Member Data Documentation

◆ count_

size_t Aleph::Cnode::Pending_Path_Guard::count_ = 0
private

Definition at line 246 of file prefix-tree.H.

Referenced by Pending_Path_Guard(), and ~Pending_Path_Guard().

◆ nodes_

Cnode** Aleph::Cnode::Pending_Path_Guard::nodes_ = nullptr
private

Definition at line 245 of file prefix-tree.H.

Referenced by Pending_Path_Guard(), ~Pending_Path_Guard(), operator[](), and set().

◆ owns_nodes_

bool Aleph::Cnode::Pending_Path_Guard::owns_nodes_ = true
private

Definition at line 247 of file prefix-tree.H.

Referenced by ~Pending_Path_Guard(), and release_nodes().


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