stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::value_compare Class Reference

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

#include <btree.h>

List of all members.

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, data_type, value_type, key_compare, traits, allow_duplicates >
 Friendly to the btree class so it may call the constructor.


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>
class stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::value_compare

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

Definition at line 832 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>
stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::value_compare::value_compare ( key_compare  kc  )  [inline, protected]

Constructor called from btree::value_comp().

Definition at line 839 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>
bool stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::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 848 of file btree.h.

References stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::value_compare::key_comp.


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>
friend class btree< key_type, data_type, value_type, key_compare, traits, allow_duplicates > [friend]

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

Definition at line 844 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>
key_compare stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::value_compare::key_comp [protected]

Key comparison function from the template parameter.

Definition at line 836 of file btree.h.

Referenced by stx::btree< _Key, _Data, _Value, _Compare, _Traits, _Duplicates >::value_compare::operator()().


The documentation for this class was generated from the following file:
Generated on Fri Apr 27 14:49:56 2007 for STX B+ Tree Template Classes by  doxygen 1.5.2