STX B+ Tree Template Classes  0.9
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::value_compare Class Reference

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

#include <btree.h>

Public Member Functions

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

Protected Member Functions

 value_compare (key_compare kc)
 Constructor called from btree::value_comp() More...
 

Protected Attributes

key_compare key_comp
 Key comparison function from the template parameter. More...
 

Friends

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

Detailed Description

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false, typename _Alloc = std::allocator<_Value>, bool _UsedAsSet = false>
class stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::value_compare

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

Definition at line 1371 of file btree.h.

Constructor & Destructor Documentation

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false, typename _Alloc = std::allocator<_Value>, bool _UsedAsSet = false>
stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::value_compare::value_compare ( key_compare  kc)
inlineprotected

Constructor called from btree::value_comp()

Definition at line 1378 of file btree.h.

Member Function Documentation

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false, typename _Alloc = std::allocator<_Value>, bool _UsedAsSet = false>
bool stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::value_compare::operator() ( const value_type x,
const value_type y 
) const
inline

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

Definition at line 1388 of file btree.h.

Friends And Related Function Documentation

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false, typename _Alloc = std::allocator<_Value>, bool _UsedAsSet = false>
friend class btree< key_type, data_type, value_type, key_compare,traits, allow_duplicates, allocator_type, used_as_set >
friend

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

Definition at line 1384 of file btree.h.

Member Data Documentation

template<typename _Key, typename _Data, typename _Value = std::pair<_Key, _Data>, typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, bool _Duplicates = false, typename _Alloc = std::allocator<_Value>, bool _UsedAsSet = false>
key_compare stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates, _Alloc, _UsedAsSet >::value_compare::key_comp
protected

Key comparison function from the template parameter.

Definition at line 1375 of file btree.h.


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