STX B+ Tree Template Classes
0.9
|
A small struct containing basic statistics about the B+ tree. More...
#include <btree.h>
Public Member Functions | |
tree_stats () | |
Zero initialized. | |
size_type | nodes () const |
Return the total number of nodes. | |
double | avgfill_leaves () const |
Return the average fill of leaves. | |
Public Attributes | |
size_type | itemcount |
Number of items in the B+ tree. | |
size_type | leaves |
Number of leaves in the B+ tree. | |
size_type | innernodes |
Number of inner nodes in the B+ tree. | |
Static Public Attributes | |
static const unsigned short | leafslots = btree_self::leafslotmax |
Base B+ tree parameter: The number of key/data slots in each leaf. | |
static const unsigned short | innerslots = btree_self::innerslotmax |
Base B+ tree parameter: The number of key slots in each inner node. |
A small struct containing basic statistics about the B+ tree.
It can be fetched using get_stats().
stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::tree_stats | ( | ) | [inline] |
double stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::avgfill_leaves | ( | ) | const [inline] |
Return the average fill of leaves.
Definition at line 1280 of file btree.h.
References stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::itemcount, stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::leafslots, and stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::leaves.
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::nodes | ( | ) | const [inline] |
Return the total number of nodes.
Definition at line 1274 of file btree.h.
References stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::innernodes, and stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::leaves.
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::innernodes |
Number of inner nodes in the B+ tree.
Definition at line 1258 of file btree.h.
Referenced by stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::allocate_inner(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::btree(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase_iter_descend(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase_one_descend(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::free_node(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::nodes(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::operator=(), and stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::verify().
const unsigned short stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::innerslots = btree_self::innerslotmax [static] |
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::itemcount |
Number of items in the B+ tree.
Definition at line 1252 of file btree.h.
Referenced by stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::avgfill_leaves(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::bulk_load(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::clear(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase_iter_descend(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase_one(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase_one_descend(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::insert_start(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::restore(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::size(), and stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::verify().
const unsigned short stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::leafslots = btree_self::leafslotmax [static] |
Base B+ tree parameter: The number of key/data slots in each leaf.
Definition at line 1261 of file btree.h.
Referenced by stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::avgfill_leaves().
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::leaves |
Number of leaves in the B+ tree.
Definition at line 1255 of file btree.h.
Referenced by stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::allocate_leaf(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::avgfill_leaves(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::btree(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::bulk_load(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase_iter_descend(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::erase_one_descend(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::free_node(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::tree_stats::nodes(), stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::operator=(), and stx::btree< key_type, data_type, value_type, key_compare, traits, false, allocator_type, false >::verify().