Fairport
v1.0.38
|
Contains the actual key value pairs of the btree. More...
#include <page.h>
Public Member Functions | |
bt_leaf_page (const shared_db_ptr &db, const page_info &pi, std::vector< std::pair< K, V > > data) | |
Construct a leaf page from disk. | |
const V & | get_value (uint pos) const |
Returns the value at the associated position on this leaf node. | |
const K & | get_key (uint pos) const |
Returns the key at the specified position. | |
uint | num_values () const |
Returns the number of entries in this btree_node. |
Contains the actual key value pairs of the btree.
K | key type |
V | value type |
fairport::bt_leaf_page< K, V >::bt_leaf_page | ( | const shared_db_ptr & | db, |
const page_info & | pi, | ||
std::vector< std::pair< K, V > > | data | ||
) | [inline] |
const K& fairport::bt_leaf_page< K, V >::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
[in] | pos | The position to retrieve the key for |
Implements fairport::btree_node< K, V >.
const V& fairport::bt_leaf_page< K, V >::get_value | ( | uint | pos | ) | const [inline, virtual] |
Returns the value at the associated position on this leaf node.
[in] | pos | The position to retrieve the value for |
Implements fairport::btree_node_leaf< K, V >.
uint fairport::bt_leaf_page< K, V >::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
Implements fairport::btree_node< K, V >.