Tkrzw
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tkrzw::TreeLinkOnStack Struct Referencefinal

Holder of TreeLink on stack for search. More...

#include <tkrzw_dbm_tree_impl.h>

Public Member Functions

 TreeLinkOnStack (std::string_view key)
 Constructor. More...
 
 ~TreeLinkOnStack ()
 Destructor. More...
 

Public Attributes

TreeLinklink
 The link object. More...
 
char stack [STACK_BUFFER_SIZE]
 The stack buffer. More...
 
char * buffer
 The actual buffer. More...
 

Static Public Attributes

static constexpr int32_t STACK_BUFFER_SIZE = 256
 The size of the stack buffer. More...
 

Detailed Description

Holder of TreeLink on stack for search.

Constructor & Destructor Documentation

◆ TreeLinkOnStack()

tkrzw::TreeLinkOnStack::TreeLinkOnStack ( std::string_view  key)
explicit

Constructor.

◆ ~TreeLinkOnStack()

tkrzw::TreeLinkOnStack::~TreeLinkOnStack ( )

Destructor.

Member Data Documentation

◆ STACK_BUFFER_SIZE

constexpr int32_t tkrzw::TreeLinkOnStack::STACK_BUFFER_SIZE = 256
staticconstexpr

The size of the stack buffer.

◆ link

TreeLink* tkrzw::TreeLinkOnStack::link

The link object.

◆ stack

char tkrzw::TreeLinkOnStack::stack[STACK_BUFFER_SIZE]

The stack buffer.

◆ buffer

char* tkrzw::TreeLinkOnStack::buffer

The actual buffer.