stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats Struct Reference

A small struct containing basic statistics about the B+ tree. More...

#include <btree.h>

List of all members.

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.


Detailed Description

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
struct stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats

A small struct containing basic statistics about the B+ tree.

It can be fetched using get_stats().

Definition at line 742 of file btree.h.


Constructor & Destructor Documentation

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::tree_stats (  )  [inline]

Zero initialized.

Definition at line 760 of file btree.h.


Member Function Documentation

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::nodes (  )  const [inline]

Return the total number of nodes.

Definition at line 767 of file btree.h.

References stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::innernodes, and stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::leaves.

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
double stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::avgfill_leaves (  )  const [inline]

Return the average fill of leaves.

Definition at line 773 of file btree.h.

References stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::itemcount, stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::leafslots, and stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::leaves.


Member Data Documentation

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::itemcount

Number of items in the B+ tree.

Definition at line 745 of file btree.h.

Referenced by stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::avgfill_leaves(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::clear(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::erase_one(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::insert_start(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::size(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::verify(), and stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::verify_node().

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::leaves

Number of leaves in the B+ tree.

Definition at line 748 of file btree.h.

Referenced by stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::allocate_leaf(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::avgfill_leaves(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::btree(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::free_node(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::nodes(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::operator=(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::verify(), and stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::verify_node().

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
size_type stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::innernodes

Number of inner nodes in the B+ tree.

Definition at line 751 of file btree.h.

Referenced by stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::allocate_inner(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::btree(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::free_node(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::nodes(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::operator=(), stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::verify(), and stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::verify_node().

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
const unsigned short stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::leafslots = btree_self::leafslotmax [static]

Base B+ tree parameter: The number of key/data slots in each leaf.

Definition at line 754 of file btree.h.

Referenced by stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::avgfill_leaves().

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false>
const unsigned short stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::tree_stats::innerslots = btree_self::innerslotmax [static]

Base B+ tree parameter: The number of key slots in each inner node.

Definition at line 757 of file btree.h.


The documentation for this struct was generated from the following file:
Generated on Sun May 13 19:24:42 2007 for STX B+ Tree Template Classes by  doxygen 1.5.2