CMS 3D CMS Logo

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() (const typename mapType::value_type &p, ID id)
 
bool operator() (ID id, const typename mapType::value_type &p)
 

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

◆ comp()

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

◆ operator()() [1/2]

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

58 { return cmp(p.first, id); }

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

◆ operator()() [2/2]

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.

57 { return cmp(id, p.first); }

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

Member Data Documentation

◆ cmp

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

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

AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::RangeMap::comp::cmp
CMP cmp
Definition: RangeMap.h:61
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56