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 55 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 56 of file RangeMap.h.

56 : 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 57 of file RangeMap.h.

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

57  {
58  return cmp(id, p.first);
59  }
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 60 of file RangeMap.h.

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

60  {
61  return cmp(p.first, id);
62  }

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 64 of file RangeMap.h.

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