CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::RangeMap< ID, C, P >::comp< CMP > Struct Template Reference

comparator helper class More...

List of all members.

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 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.

: 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.

                                                                   {
        return cmp(id, p.first);
      }
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.

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

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()().