Fairport  v1.0.38
fairport::subnode_block Class Reference

A block which contains information about subnodes. More...

#include <node.h>

+ Inheritance diagram for fairport::subnode_block:
+ Collaboration diagram for fairport::subnode_block:

List of all members.

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.

Detailed Description

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.

See also:
[MS-PST] 2.2.2.8.3.3

Definition at line 656 of file node.h.


Constructor & Destructor Documentation

fairport::subnode_block::subnode_block ( const shared_db_ptr db,
const block_info info,
ushort  level 
) [inline]

Construct a block from disk.

Parameters:
[in]dbThe database context
[in]infoInformation about this block
[in]levelThe level of this subnode_block (0 or 1)

Definition at line 665 of file node.h.

virtual fairport::subnode_block::~subnode_block ( ) [inline, virtual]

Definition at line 668 of file node.h.


Member Function Documentation

ushort fairport::subnode_block::get_level ( ) const [inline]

Get the level of this subnode_block.

Returns:
0 for a leaf block, 1 otherwise

Definition at line 672 of file node.h.

bool fairport::subnode_block::is_internal ( ) const [inline, virtual]

Returns the blocks internal/external state.

Returns:
true if this is an internal block, false otherwise

Implements fairport::block.

Definition at line 674 of file node.h.


Member Data Documentation

Level of this subnode_block.

Definition at line 677 of file node.h.


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