Fairport
v1.0.38
|
A block which contains information about subnodes. More...
#include <node.h>
Public Member Functions | |
subnode_block (const shared_db_ptr &db, const block_info &info, ushort level) | |
Construct a block from disk. | |
virtual | ~subnode_block () |
ushort | get_level () const |
Get the level of this subnode_block. | |
bool | is_internal () const |
Returns the blocks internal/external state. | |
Protected Attributes | |
ushort | m_level |
Level of this subnode_block. |
A block which contains information about subnodes.
Subnode blocks form a sort of "private NBT" for a node. This class is the root class of that hierarchy, with child classes for the leaf and non-leaf versions of a subnode block.
This hierarchy also models the btree_node structure, inheriting the actual iteration and lookup logic.
fairport::subnode_block::subnode_block | ( | const shared_db_ptr & | db, |
const block_info & | info, | ||
ushort | level | ||
) | [inline] |
Construct a block from disk.
[in] | db | The database context |
[in] | info | Information about this block |
[in] | level | The level of this subnode_block (0 or 1) |
virtual fairport::subnode_block::~subnode_block | ( | ) | [inline, virtual] |
ushort fairport::subnode_block::get_level | ( | ) | const [inline] |
Get the level of this subnode_block.
bool fairport::subnode_block::is_internal | ( | ) | const [inline, virtual] |
Returns the blocks internal/external state.
Implements fairport::block.
ushort fairport::subnode_block::m_level [protected] |
Level of this subnode_block.