Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
util::VectorMap< _Key, _Tp, _Compare >::value_compare Class Reference

#include <VectorMap.h>

Public Member Functions

bool operator() (const value_type &__x, const value_type &__y) const
 
bool operator() (const value_type &__x, const key_type &__y) const
 
bool operator() (const key_type &__x, const value_type &__y) const
 

Protected Member Functions

 value_compare (_Compare __c=_Compare())
 
_Compare GetCompare () const
 

Protected Attributes

_Compare comp
 

Private Member Functions

bool keyLess (const key_type &__x, const key_type &__y) const
 

Friends

class VectorMap< _Key, _Tp, _Compare >
 

Detailed Description

template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
class util::VectorMap< _Key, _Tp, _Compare >::value_compare

Definition at line 141 of file VectorMap.h.

Constructor & Destructor Documentation

template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
util::VectorMap< _Key, _Tp, _Compare >::value_compare::value_compare ( _Compare  __c = _Compare())
inlineprotected

Definition at line 146 of file VectorMap.h.

147  : comp(__c) { }

Member Function Documentation

template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
_Compare util::VectorMap< _Key, _Tp, _Compare >::value_compare::GetCompare ( ) const
inlineprotected

Definition at line 148 of file VectorMap.h.

148 { return comp; }
template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
bool util::VectorMap< _Key, _Tp, _Compare >::value_compare::keyLess ( const key_type __x,
const key_type __y 
) const
inlineprivate

Definition at line 165 of file VectorMap.h.

167  { return comp(__x, __y); }
template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
bool util::VectorMap< _Key, _Tp, _Compare >::value_compare::operator() ( const value_type __x,
const value_type __y 
) const
inline

Definition at line 155 of file VectorMap.h.

157  { return keyLess(__x.first, __y.first); }
bool keyLess(const key_type &__x, const key_type &__y) const
Definition: VectorMap.h:165
template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
bool util::VectorMap< _Key, _Tp, _Compare >::value_compare::operator() ( const value_type __x,
const key_type __y 
) const
inline

Definition at line 158 of file VectorMap.h.

160  { return keyLess(__x.first, __y); }
bool keyLess(const key_type &__x, const key_type &__y) const
Definition: VectorMap.h:165
template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
bool util::VectorMap< _Key, _Tp, _Compare >::value_compare::operator() ( const key_type __x,
const value_type __y 
) const
inline

Definition at line 161 of file VectorMap.h.

163  { return keyLess(__x, __y.first); }
bool keyLess(const key_type &__x, const key_type &__y) const
Definition: VectorMap.h:165

Friends And Related Function Documentation

template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
friend class VectorMap< _Key, _Tp, _Compare >
friend

Definition at line 143 of file VectorMap.h.

Member Data Documentation

template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>>
_Compare util::VectorMap< _Key, _Tp, _Compare >::value_compare::comp
protected

Definition at line 149 of file VectorMap.h.


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