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

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

#include <tkrzw_dbm_tree_impl.h>

Public Member Functions

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

Public Attributes

TreeRecordrecord
 The record 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 TreeRecord on stack for search.

Constructor & Destructor Documentation

◆ TreeRecordOnStack()

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

Constructor.

◆ ~TreeRecordOnStack()

tkrzw::TreeRecordOnStack::~TreeRecordOnStack ( )

Destructor.

Member Data Documentation

◆ STACK_BUFFER_SIZE

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

The size of the stack buffer.

◆ record

TreeRecord* tkrzw::TreeRecordOnStack::record

The record object.

◆ stack

char tkrzw::TreeRecordOnStack::stack[STACK_BUFFER_SIZE]

The stack buffer.

◆ buffer

char* tkrzw::TreeRecordOnStack::buffer

The actual buffer.