CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::RangeMap< ID, C, P >::comp< CMP > Struct Template Reference

comparator helper class More...

Public Member Functions

 comp (const CMP c)
 
bool operator() (ID id, const typename mapType::value_type &p)
 
bool operator() (const typename mapType::value_type &p, ID id)
 

Private Attributes

CMP cmp
 

Detailed Description

template<typename ID, typename C, typename P = typename clonehelper::CloneTrait<C>::type>
template<typename CMP>
struct edm::RangeMap< ID, C, P >::comp< CMP >

comparator helper class

Definition at line 57 of file RangeMap.h.

Constructor & Destructor Documentation

template<typename ID, typename C, typename P = typename clonehelper::CloneTrait<C>::type>
template<typename CMP >
edm::RangeMap< ID, C, P >::comp< CMP >::comp ( const CMP  c)
inline

Definition at line 58 of file RangeMap.h.

58 : cmp(c) { }

Member Function Documentation

template<typename ID, typename C, typename P = typename clonehelper::CloneTrait<C>::type>
template<typename CMP >
bool edm::RangeMap< ID, C, P >::comp< CMP >::operator() ( ID  id,
const typename mapType::value_type &  p 
)
inline

Definition at line 59 of file RangeMap.h.

References edm::RangeMap< ID, C, P >::comp< CMP >::cmp.

59  {
60  return cmp(id, p.first);
61  }
template<typename ID, typename C, typename P = typename clonehelper::CloneTrait<C>::type>
template<typename CMP >
bool edm::RangeMap< ID, C, P >::comp< CMP >::operator() ( const typename mapType::value_type &  p,
ID  id 
)
inline

Definition at line 62 of file RangeMap.h.

References edm::RangeMap< ID, C, P >::comp< CMP >::cmp.

62  {
63  return cmp(p.first, id);
64  }

Member Data Documentation

template<typename ID, typename C, typename P = typename clonehelper::CloneTrait<C>::type>
template<typename CMP >
CMP edm::RangeMap< ID, C, P >::comp< CMP >::cmp
private

Definition at line 66 of file RangeMap.h.

Referenced by edm::RangeMap< ID, C, P >::comp< CMP >::operator()().