tlx
|
Extended structure of a leaf node in memory. More...
Public Types | |
typedef std::allocator_traits< Allocator >::template rebind_alloc< LeafNode > | alloc_type |
Define an related allocator for the LeafNode structs. More... | |
Public Member Functions | |
void | initialize () |
Set variables to initial values. More... | |
const key_type & | key (size_t s) const |
Return key in slot s. More... | |
bool | is_full () const |
True if the node's slots are full. More... | |
bool | is_few () const |
True if few used entries, less than half full. More... | |
bool | is_underflow () const |
True if node has too few entries. More... | |
void | set_slot (unsigned short slot, const value_type &value) |
Set the (key,data) pair in slot. More... | |
Public Member Functions inherited from BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::node | |
void | initialize (const unsigned short l) |
Delayed initialisation of constructed node. More... | |
bool | is_leafnode () const |
True if this is a leaf node. More... | |
Public Attributes | |
LeafNode * | prev_leaf |
Double linked list pointers to traverse the leaves. More... | |
LeafNode * | next_leaf |
Double linked list pointers to traverse the leaves. More... | |
value_type | slotdata [leaf_slotmax] |
Array of (key, data) pairs. More... | |
Public Attributes inherited from BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::node | |
unsigned short | level |
Level in the b-tree, if level == 0 -> leaf node. More... | |
unsigned short | slotuse |
Number of key slotuse use, so the number of valid children or data pointers. More... | |
Extended structure of a leaf node in memory.
Contains pairs of keys and data items. Key and data slots are kept together in value_type.
typedef std::allocator_traits<Allocator>::template rebind_alloc<LeafNode> alloc_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the (key,data) pair in slot.
Overloaded function used by bulk_load().
LeafNode* next_leaf |
LeafNode* prev_leaf |
value_type slotdata[leaf_slotmax] |