tlx
Loading...
Searching...
No Matches
BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::value_compare Class Reference

Function class to compare value_type objects. Required by the STL. More...

#include <btree.hpp>

Public Member Functions

bool operator() (const value_type &x, const value_type &y) const
 Function call "less"-operator resulting in true if x < y.
 

Protected Member Functions

 value_compare (key_compare kc)
 Constructor called from BTree::value_comp()
 

Protected Attributes

key_compare key_comp
 Key comparison function from the template parameter.
 

Friends

class BTree< key_type, value_type, key_of_value, key_compare, traits, allow_duplicates, allocator_type >
 Friendly to the btree class so it may call the constructor.
 

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>>
class tlx::BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::value_compare

Function class to compare value_type objects. Required by the STL.

Definition at line 1160 of file btree.hpp.

Constructor & Destructor Documentation

◆ value_compare()

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>>
value_compare ( key_compare kc)
inlineexplicitprotected

Constructor called from BTree::value_comp()

Definition at line 1167 of file btree.hpp.

Member Function Documentation

◆ operator()()

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>>
bool operator() ( const value_type & x,
const value_type & y ) const
inline

Function call "less"-operator resulting in true if x < y.

Definition at line 1177 of file btree.hpp.

Friends And Related Symbol Documentation

◆ BTree< key_type, value_type, key_of_value, key_compare, traits, allow_duplicates, allocator_type >

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>>
friend class BTree< key_type, value_type, key_of_value, key_compare, traits, allow_duplicates, allocator_type >
friend

Friendly to the btree class so it may call the constructor.

Definition at line 1167 of file btree.hpp.

Member Data Documentation

◆ key_comp

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>>
key_compare key_comp
protected

Key comparison function from the template parameter.

Definition at line 1164 of file btree.hpp.


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