|
PST File Format SDK v0.4
|
#include <page.h>
Inheritance diagram for pstsdk::bt_page< K, V >:
Collaboration diagram for pstsdk::bt_page< K, V >:Public Member Functions | |
| bt_page (const shared_db_ptr &db, const page_info &pi, ushort level) | |
| Construct a bt_page from disk. | |
| ushort | get_level () const |
| Returns the level of this bt_page. | |
Public Member Functions inherited from pstsdk::page | |
| page (const shared_db_ptr &db, const page_info &pi) | |
| Construct a page from disk. | |
| page_id | get_page_id () const |
| Get the page id. | |
| ulonglong | get_address () const |
| Get the physical address of this page. | |
Public Member Functions inherited from pstsdk::btree_node< K, V > | |
| virtual | ~btree_node () |
| virtual const V & | lookup (const K &key) const =0 |
| Looks up the associated value for a given key. | |
| virtual const K & | get_key (uint pos) const =0 |
| Returns the key at the specified position. | |
| virtual uint | num_values () const =0 |
| Returns the number of entries in this btree_node. | |
| const_iterator | begin () const |
| Returns a STL style iterator positioned at the first entry. | |
| const_iterator | end () const |
| Returns a STL style iterator positioned at the "end" entry. | |
| int | binary_search (const K &key) const |
| Performs a binary search over the keys of this btree_node. | |
Additional Inherited Members | |
Public Types inherited from pstsdk::btree_node< K, V > | |
| typedef const_btree_node_iter< K, V > | const_iterator |
Protected Member Functions inherited from pstsdk::page | |
| shared_db_ptr | get_db_ptr () const |
Protected Member Functions inherited from pstsdk::btree_node< K, V > | |
| virtual void | first (btree_iter_impl< K, V > &iter) const =0 |
| Positions the iterator at the first element on this tree. | |
| virtual void | last (btree_iter_impl< K, V > &iter) const =0 |
| Positions the iterator at the "end" element. | |
| virtual void | next (btree_iter_impl< K, V > &iter) const =0 |
| Moves the iterator to the next element. | |
| virtual void | prev (btree_iter_impl< K, V > &iter) const =0 |
| Moves the iterator to the previous element. | |
Protected Attributes inherited from pstsdk::page | |
| weak_db_ptr | m_db |
| The database context we're a member of. | |
| page_id | m_pid |
| Page id. | |
| ulonglong | m_address |
| Address of this page. | |
|
inline |
|
inline |