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

Link to a child node. More...

#include <tkrzw_dbm_tree_impl.h>

Public Member Functions

std::string_view GetKey () const
 Gets the key data. More...
 
int32_t GetSerializedSize (int32_t page_id_width) const
 Gets the serialized size. More...
 

Public Attributes

int32_t key_size
 The size of the key. More...
 
int64_t child
 The page ID of the child node. More...
 

Detailed Description

Link to a child node.

Member Function Documentation

◆ GetKey()

std::string_view tkrzw::TreeLink::GetKey ( ) const

Gets the key data.

Returns
The key data.

◆ GetSerializedSize()

int32_t tkrzw::TreeLink::GetSerializedSize ( int32_t  page_id_width) const

Gets the serialized size.

Parameters
page_id_widthThe width of the page ID.
Returns
The serialized size.

Member Data Documentation

◆ key_size

int32_t tkrzw::TreeLink::key_size

The size of the key.

◆ child

int64_t tkrzw::TreeLink::child

The page ID of the child node.