| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type Struct Reference

The actual structure used to compare the elements Only "key" is important for comparison. More...

`#include <GaudiKernel/VectorMap.h>`

Inheritance diagram for GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type:
[legend]
Collaboration diagram for GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type:
[legend]

## Public Member Functions
| _compare_type (const key_compare &cmp)
| constructor from the key-comparison criteria More...
| _compare_type ()
| default constructor More...
bool | operator() (const key_type &k1, const key_type &k2) const
| compare keys: use key_compare More...
bool | operator() (const value_type &v1, const value_type &v2) const
| compare pairs (key,mapped): use compare by keys More...
bool | operator() (const key_type &k, const value_type &v) const
| compare key and pair (key,mapped): use compare by keys More...
bool | operator() (const value_type &v, const key_type &k) const
| compare pair (key,mapped) and the key: use compare by keys More...

## Detailed Description

### template<class KEY, class VALUE, class KEYCOMPARE = std::less<const KEY>, class ALLOCATOR = std::allocator<std::pair<KEY, VALUE>>>
struct GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type

The actual structure used to compare the elements Only "key" is important for comparison.

Definition at line 160 of file VectorMap.h.

## Constructor & Destructor Documentation

template<class KEY, class VALUE, class KEYCOMPARE = std::less<const KEY>, class ALLOCATOR = std::allocator<std::pair<KEY, VALUE>>>

GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type::_compare_type | ( | const key_compare & | cmp | ) |
| inline

constructor from the key-comparison criteria

Definition at line 164 of file VectorMap.h.

164 : key_compare( cmp ) {}
GaudiUtils::VectorMap::key_compare
KEYCOMPARE key_compare
comparison of keys
Definition: VectorMap.h:112
template<class KEY, class VALUE, class KEYCOMPARE = std::less<const KEY>, class ALLOCATOR = std::allocator<std::pair<KEY, VALUE>>>

GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type::_compare_type | ( |  | ) |
| inline

default constructor

Definition at line 166 of file VectorMap.h.

166 : key_compare() {}
GaudiUtils::VectorMap::key_compare
KEYCOMPARE key_compare
comparison of keys
Definition: VectorMap.h:112

## Member Function Documentation

template<class KEY, class VALUE, class KEYCOMPARE = std::less<const KEY>, class ALLOCATOR = std::allocator<std::pair<KEY, VALUE>>>

bool GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type::operator() | ( | const key_type & | k1,
|  | const key_type & | k2
| ) |  | const
| inline

compare keys: use key_compare

Definition at line 168 of file VectorMap.h.

169 {
170 return this->key_compare::operator()( k1, k2 );
171 }
Gaudi::Functional::operator()
virtual Out operator()(const vector_of_const_< In > &inputs) const =0
template<class KEY, class VALUE, class KEYCOMPARE = std::less<const KEY>, class ALLOCATOR = std::allocator<std::pair<KEY, VALUE>>>

bool GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type::operator() | ( | const value_type & | v1,
|  | const value_type & | v2
| ) |  | const
| inline

compare pairs (key,mapped): use compare by keys

Definition at line 173 of file VectorMap.h.

173 { return operator()( v1.first, v2.first ); }
GaudiUtils::VectorMap::_compare_type::operator()
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:168
template<class KEY, class VALUE, class KEYCOMPARE = std::less<const KEY>, class ALLOCATOR = std::allocator<std::pair<KEY, VALUE>>>

bool GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type::operator() | ( | const key_type & | k,
|  | const value_type & | v
| ) |  | const
| inline

compare key and pair (key,mapped): use compare by keys

Definition at line 175 of file VectorMap.h.

175 { return operator()( k, v.first ); }
GaudiUtils::VectorMap::_compare_type::operator()
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:168
template<class KEY, class VALUE, class KEYCOMPARE = std::less<const KEY>, class ALLOCATOR = std::allocator<std::pair<KEY, VALUE>>>

bool GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >::_compare_type::operator() | ( | const value_type & | v,
|  | const key_type & | k
| ) |  | const
| inline

compare pair (key,mapped) and the key: use compare by keys

Definition at line 177 of file VectorMap.h.

177 { return operator()( v.first, k ); }
GaudiUtils::VectorMap::_compare_type::operator()
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:168

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

- GaudiKernel/GaudiKernel/VectorMap.h