Fairport  v1.0.38
fairport::subnode_leaf_block Class Reference

Contains the actual subnode information. More...

#include <node.h>

+ Inheritance diagram for fairport::subnode_leaf_block:
+ Collaboration diagram for fairport::subnode_leaf_block:

List of all members.

Public Member Functions

 subnode_leaf_block (const shared_db_ptr &db, const block_info &info, std::vector< std::pair< node_id, subnode_info > > subnodes)
 Construct a subnode_leaf_block from disk.
const subnode_infoget_value (uint pos) const
 Returns the value at the associated position on this leaf node.
const node_idget_key (uint pos) const
 Returns the key at the specified position.
uint num_values () const
 Returns the number of entries in this btree_node.

Detailed Description

Contains the actual subnode information.

Typically a node will point directly to one of these. Because they are blocks, and thus up to 8k in size, they can hold information for about ~300 subnodes in a unicode store, and up to ~600 in an ANSI store.

See also:
[MS-PST] 2.2.2.8.3.3.1

Definition at line 729 of file node.h.


Constructor & Destructor Documentation

fairport::subnode_leaf_block::subnode_leaf_block ( const shared_db_ptr db,
const block_info info,
std::vector< std::pair< node_id, subnode_info > >  subnodes 
) [inline]

Construct a subnode_leaf_block from disk.

Parameters:
[in]dbThe database context
[in]infoInformation about this block
[in]subnodesInformation about the subnodes

Definition at line 740 of file node.h.


Member Function Documentation

const node_id& fairport::subnode_leaf_block::get_key ( uint  pos) const [inline, virtual]

Returns the key at the specified position.

This is specific to this btree_node, not the entire tree

Parameters:
[in]posThe position to retrieve the key for
Returns:
The key at the requested position

Implements fairport::btree_node< K, V >.

Definition at line 750 of file node.h.

const subnode_info& fairport::subnode_leaf_block::get_value ( uint  pos) const [inline, virtual]

Returns the value at the associated position on this leaf node.

Parameters:
[in]posThe position to retrieve the value for
Returns:
The value at the requested position

Implements fairport::btree_node_leaf< node_id, subnode_info >.

Definition at line 748 of file node.h.

uint fairport::subnode_leaf_block::num_values ( ) const [inline, virtual]

Returns the number of entries in this btree_node.

This is specific to this btree_node, not the entire tree

Returns:
The number of keys in this btree_node

Implements fairport::btree_node< K, V >.

Definition at line 752 of file node.h.


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