Template Class BTree
Defined in File BTree.h
Nested Relationships
Nested Types
Class Documentation
-
template<std::totally_ordered K, class V>
class BTree a DICTIONARY on a B-tree of minimum degree t
Public Types
-
using size_type = std::size_t
-
using difference_type = std::ptrdiff_t
-
using reference = value_type
-
using const_reference = value_type
-
using iterator = const_iterator
Public Functions
-
explicit BTree(int t = 3)
the empty B-tree of minimum degree t
- Pre:
t >= 2
-
std::size_t size(void) const
-
bool empty(void) const
-
int height(void) const
the height, 0 for a single leaf, -1 if empty
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
class const_iterator
Public Types
-
using difference_type = std::ptrdiff_t
-
using iterator_concept = std::forward_iterator_tag
-
using iterator_category = std::input_iterator_tag
Public Functions
-
const_iterator(void) = default
-
inline explicit const_iterator(const Node *x)
on the first key below x, or at the end if x is nil or empty
-
inline const_iterator &operator++(void)
-
inline const_iterator operator++(int)
-
inline bool operator==(const const_iterator &o) const
-
using difference_type = std::ptrdiff_t
-
using size_type = std::size_t