LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 140 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 144 of file VectorMap.h.

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

144 : 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 145 of file VectorMap.h.

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

145 { 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 151 of file VectorMap.h.

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

152  {
153  return keyLess(__x.first, __y.first);
154  }
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 155 of file VectorMap.h.

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

156  {
157  return keyLess(__x.first, __y);
158  }
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 159 of file VectorMap.h.

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

160  {
161  return keyLess(__x, __y.first);
162  }
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 141 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: