stx::btree_default_map_traits< _Key, _Data > Struct Template Reference

Generates default traits for a B+ tree used as a map. More...

#include <btree.h>

List of all members.

Static Public Attributes

static const bool selfverify = false
 If true, the tree will self verify it's invariants after each insert() or erase().
static const bool debug = false
 If true, the tree will print out debug information and a tree dump during insert() or erase() operation.
static const int leafslots = BTREE_MAX( 8, 256 / (sizeof(_Key) + sizeof(_Data)) )
 Number of slots in each leaf of the tree.
static const int innerslots = BTREE_MAX( 8, 256 / (sizeof(_Key) + sizeof(void*)) )
 Number of slots in each inner node of the tree.


Detailed Description

template<typename _Key, typename _Data>
struct stx::btree_default_map_traits< _Key, _Data >

Generates default traits for a B+ tree used as a map.

It estimates leaf and inner node sizes by assuming a cache line size of 256 bytes.

Definition at line 91 of file btree.h.


Member Data Documentation

template<typename _Key, typename _Data>
const bool stx::btree_default_map_traits< _Key, _Data >::selfverify = false [static]

If true, the tree will self verify it's invariants after each insert() or erase().

The header must have been compiled with BTREE_DEBUG defined.

Definition at line 95 of file btree.h.

template<typename _Key, typename _Data>
const bool stx::btree_default_map_traits< _Key, _Data >::debug = false [static]

If true, the tree will print out debug information and a tree dump during insert() or erase() operation.

The header must have been compiled with BTREE_DEBUG defined and key_type must be std::ostream printable.

Definition at line 101 of file btree.h.

template<typename _Key, typename _Data>
const int stx::btree_default_map_traits< _Key, _Data >::leafslots = BTREE_MAX( 8, 256 / (sizeof(_Key) + sizeof(_Data)) ) [static]

Number of slots in each leaf of the tree.

Estimated so that each node has a size of about 256 bytes.

Definition at line 105 of file btree.h.

template<typename _Key, typename _Data>
const int stx::btree_default_map_traits< _Key, _Data >::innerslots = BTREE_MAX( 8, 256 / (sizeof(_Key) + sizeof(void*)) ) [static]

Number of slots in each inner node of the tree.

Estimated so that each node has a size of about 256 bytes.

Definition at line 109 of file btree.h.


The documentation for this struct was generated from the following file:
Generated on Fri Apr 27 14:49:56 2007 for STX B+ Tree Template Classes by  doxygen 1.5.2