CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 18 of file PointerComparator.h.

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

Definition at line 19 of file PointerComparator.h.

Member Function Documentation

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.

References PointerComparator< C >::cmp, edm::hlt::Exception, and edm::errors::NullPointerError.

20  {
21  if ( t1 == 0 || t2 == 0 )
23  << "PointerComparator: passed null pointer.";
24  return cmp( *t1, *t2 );
25  }
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:18

Member Data Documentation

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

Definition at line 26 of file PointerComparator.h.

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