CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
PointerComparator< C > Struct Template Reference

#include <PointerComparator.h>

Public Types

typedef C::first_argument_type first_argument_type
 
typedef C::second_argument_type second_argument_type
 

Public Member Functions

bool operator() (const first_argument_type *t1, const second_argument_type *t2) const
 

Public Attributes

cmp
 

Detailed Description

template<typename C>
struct PointerComparator< C >

Definition at line 17 of file PointerComparator.h.

Member Typedef Documentation

◆ first_argument_type

template<typename C >
typedef C::first_argument_type PointerComparator< C >::first_argument_type

Definition at line 18 of file PointerComparator.h.

◆ second_argument_type

template<typename C >
typedef C::second_argument_type PointerComparator< C >::second_argument_type

Definition at line 19 of file PointerComparator.h.

Member Function Documentation

◆ operator()()

template<typename C >
bool PointerComparator< C >::operator() ( const first_argument_type t1,
const second_argument_type t2 
) const
inline

Definition at line 20 of file PointerComparator.h.

20  {
21  if (t1 == nullptr || t2 == nullptr)
22  throw edm::Exception(edm::errors::NullPointerError) << "PointerComparator: passed null pointer.";
23  return cmp(*t1, *t2);
24  }

References PointerComparator< C >::cmp, Exception, edm::errors::NullPointerError, RandomServiceHelper::t1, and RandomServiceHelper::t2.

Member Data Documentation

◆ cmp

template<typename C >
C PointerComparator< C >::cmp

Definition at line 25 of file PointerComparator.h.

Referenced by PointerComparator< C >::operator()().

RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
edm::errors::NullPointerError
Definition: EDMException.h:40
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
Exception
Definition: hltDiff.cc:246
PointerComparator::cmp
C cmp
Definition: PointerComparator.h:25