STXXL
1.4-dev
|
Classes | |
struct | bid_hash |
Public Types | |
typedef btree_type::alloc_strategy_type | alloc_strategy_type |
typedef node_type::bid_type | bid_type |
typedef node_type::block_type | block_type |
typedef BTreeType | btree_type |
typedef btree_type::key_compare | key_compare |
typedef NodeType | node_type |
typedef stxxl::lru_pager | pager_type |
Public Member Functions | |
node_cache (unsigned_type cache_size_in_bytes, btree_type *btree, key_compare cmp) | |
~node_cache () | |
void | delete_node (const bid_type &bid) |
node_type const * | get_const_node (const bid_type &bid, bool fix=false) |
node_type * | get_new_node (bid_type &new_bid) |
node_type * | get_node (const bid_type &bid, bool fix=false) |
unsigned_type | nfixed () const |
void | prefetch_node (const bid_type &bid) |
void | print_statistics (std::ostream &o) const |
void | reset_statistics () |
unsigned_type | size () const |
void | swap (node_cache &obj) |
void | unfix_node (const bid_type &bid) |
Private Types | |
typedef hash_map_type | bid2node_type |
typedef compat_hash_map < bid_type, int_type, bid_hash > ::result | hash_map_type |
Private Member Functions | |
void | change_btree_pointers (btree_type *b) |
![]() | |
noncopyable () | |
Private Attributes | |
alloc_strategy_type | m_alloc_strategy |
bid2node_type | m_bid2node |
block_manager * | m_bm |
btree_type * | m_btree |
key_compare | m_cmp |
std::vector< bool > | m_dirty |
std::vector< bool > | m_fixed |
std::vector< int_type > | m_free_nodes |
std::vector< node_type * > | m_nodes |
pager_type | m_pager |
std::vector< request_ptr > | m_reqs |
int64 | n_clean_forced |
int64 | n_created |
int64 | n_deleted |
int64 | n_found |
int64 | n_not_found |
int64 | n_read |
int64 | n_written |
typedef btree_type::alloc_strategy_type stxxl::btree::node_cache< NodeType, BTreeType >::alloc_strategy_type |
Definition at line 42 of file node_cache.h.
|
private |
Definition at line 88 of file node_cache.h.
typedef node_type::bid_type stxxl::btree::node_cache< NodeType, BTreeType >::bid_type |
Definition at line 39 of file node_cache.h.
typedef node_type::block_type stxxl::btree::node_cache< NodeType, BTreeType >::block_type |
Definition at line 38 of file node_cache.h.
typedef BTreeType stxxl::btree::node_cache< NodeType, BTreeType >::btree_type |
Definition at line 36 of file node_cache.h.
|
private |
Definition at line 85 of file node_cache.h.
typedef btree_type::key_compare stxxl::btree::node_cache< NodeType, BTreeType >::key_compare |
Definition at line 40 of file node_cache.h.
typedef NodeType stxxl::btree::node_cache< NodeType, BTreeType >::node_type |
Definition at line 37 of file node_cache.h.
typedef stxxl::lru_pager stxxl::btree::node_cache< NodeType, BTreeType >::pager_type |
Definition at line 43 of file node_cache.h.
|
inline |
Definition at line 114 of file node_cache.h.
|
inline |
Definition at line 168 of file node_cache.h.
|
inlineprivate |
Definition at line 104 of file node_cache.h.
|
inline |
Definition at line 450 of file node_cache.h.
|
inline |
Definition at line 358 of file node_cache.h.
Referenced by stxxl::btree::btree_iterator_base< self_type >::const_access(), stxxl::btree::btree_iterator_base< self_type >::decrement(), and stxxl::btree::btree_iterator_base< self_type >::increment().
|
inline |
Definition at line 186 of file node_cache.h.
|
inline |
Definition at line 264 of file node_cache.h.
Referenced by stxxl::btree::btree_iterator_base< self_type >::non_const_access().
|
inline |
Definition at line 155 of file node_cache.h.
|
inline |
Definition at line 477 of file node_cache.h.
|
inline |
Definition at line 581 of file node_cache.h.
|
inline |
Definition at line 597 of file node_cache.h.
|
inline |
Definition at line 149 of file node_cache.h.
|
inline |
Definition at line 560 of file node_cache.h.
|
inline |
Definition at line 553 of file node_cache.h.
Referenced by stxxl::btree::btree_iterator_base< self_type >::decrement(), and stxxl::btree::btree_iterator_base< self_type >::increment().
|
private |
Definition at line 93 of file node_cache.h.
|
private |
Definition at line 90 of file node_cache.h.
|
private |
Definition at line 92 of file node_cache.h.
|
private |
Definition at line 46 of file node_cache.h.
|
private |
Definition at line 47 of file node_cache.h.
|
private |
Definition at line 83 of file node_cache.h.
|
private |
Definition at line 82 of file node_cache.h.
|
private |
Definition at line 84 of file node_cache.h.
|
private |
Definition at line 80 of file node_cache.h.
|
private |
Definition at line 91 of file node_cache.h.
|
private |
Definition at line 81 of file node_cache.h.
|
private |
Definition at line 101 of file node_cache.h.
|
private |
Definition at line 97 of file node_cache.h.
|
private |
Definition at line 98 of file node_cache.h.
|
private |
Definition at line 95 of file node_cache.h.
|
private |
Definition at line 96 of file node_cache.h.
|
private |
Definition at line 99 of file node_cache.h.
|
private |
Definition at line 100 of file node_cache.h.