LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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.

Referenced by util::VectorMap< int, double >::swap().

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.

References util::VectorMap< _Key, _Tp, _Compare >::value_compare::comp.

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
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.

References util::VectorMap< _Key, _Tp, _Compare >::value_compare::keyLess().

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.

References util::VectorMap< _Key, _Tp, _Compare >::value_compare::keyLess().

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.

References util::VectorMap< _Key, _Tp, _Compare >::value_compare::keyLess().

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

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