Thrill  0.1
BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::result_t Struct Reference

Detailed Description

template<typename Key, typename Value, typename KeyOfValue, typename Compare = std::less<Key>, typename Traits = btree_default_traits<Key, Value>, bool Duplicates = false, typename Allocator = std::allocator<Value>>
struct tlx::BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::result_t

B+ tree recursive deletion has much information which is needs to be passed upward.

Definition at line 2325 of file btree.hpp.

Public Member Functions

 result_t (result_flags_t f=btree_ok)
 
 result_t (result_flags_t f, const key_type &k)
 Constructor with a lastkey value. More...
 
bool has (result_flags_t f) const
 Test if this result object has a given flag set. More...
 
result_toperator|= (const result_t &other)
 Merge two results OR-ing the result flags and overwriting lastkeys. More...
 

Public Attributes

result_flags_t flags
 Merged result flags. More...
 
key_type lastkey
 The key to be updated at the parent's slot. More...
 

Constructor & Destructor Documentation

◆ result_t() [1/2]

result_t ( result_flags_t  f = btree_ok)
inline

Constructor of a result with a specific flag, this can also be used as for implicit conversion.

Definition at line 2334 of file btree.hpp.

◆ result_t() [2/2]

result_t ( result_flags_t  f,
const key_type k 
)
inline

Constructor with a lastkey value.

Definition at line 2339 of file btree.hpp.

Member Function Documentation

◆ has()

bool has ( result_flags_t  f) const
inline

Test if this result object has a given flag set.

Definition at line 2344 of file btree.hpp.

Referenced by BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::result_t::operator|=().

◆ operator|=()

Member Data Documentation

◆ flags

◆ lastkey

key_type lastkey

The key to be updated at the parent's slot.

Definition at line 2330 of file btree.hpp.

Referenced by BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::result_t::operator|=().


The documentation for this struct was generated from the following file: