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 </scratch/z5/marcocle/GaudiDocs/lhcb-release/825/GAUDI/GAUDI_v26r3/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/VectorMap.h>

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

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...
 
 _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 167 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 172 of file VectorMap.h.

172 : key_compare ( cmp ) {}
KEYCOMPARE key_compare
comparison of keys
Definition: VectorMap.h:119
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 174 of file VectorMap.h.

174 : key_compare ( ) {}
KEYCOMPARE key_compare
comparison of keys
Definition: VectorMap.h:119
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 172 of file VectorMap.h.

172 : key_compare ( cmp ) {}
KEYCOMPARE key_compare
comparison of keys
Definition: VectorMap.h:119
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 174 of file VectorMap.h.

174 : key_compare ( ) {}
KEYCOMPARE key_compare
comparison of keys
Definition: VectorMap.h:119

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 176 of file VectorMap.h.

177  { return this->key_compare::operator() ( k1 , k2 ) ; }
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 176 of file VectorMap.h.

177  { return this->key_compare::operator() ( k1 , k2 ) ; }
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 179 of file VectorMap.h.

180  { return operator() ( v1.first, v2.first ); }
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:176
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 179 of file VectorMap.h.

180  { return operator() ( v1.first, v2.first ); }
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:176
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 182 of file VectorMap.h.

183  { return operator() ( k , v.first ) ; }
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:176
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 182 of file VectorMap.h.

183  { return operator() ( k , v.first ) ; }
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:176
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 185 of file VectorMap.h.

186  { return operator() ( v.first , k ) ; }
bool operator()(const key_type &k1, const key_type &k2) const
compare keys: use key_compare
Definition: VectorMap.h:176
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 185 of file VectorMap.h.

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

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