CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
HcalConstFunctor Class Reference

#include <HcalConstFunctor.h>

Inheritance diagram for HcalConstFunctor:
AbsHcalFunctor

Public Member Functions

 HcalConstFunctor ()
 
 HcalConstFunctor (const double value)
 
double operator() (double x) const override
 
 ~HcalConstFunctor () override
 
- Public Member Functions inherited from AbsHcalFunctor
bool operator!= (const AbsHcalFunctor &r) const
 
bool operator== (const AbsHcalFunctor &r) const
 
virtual double xmax () const
 
virtual double xmin () const
 
virtual ~AbsHcalFunctor ()
 

Protected Member Functions

bool isEqual (const AbsHcalFunctor &other) const override
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, unsigned)
 

Private Attributes

double value_
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Static Protected Member Functions inherited from AbsHcalFunctor
template<class Iter >
static bool isStrictlyDecreasing (Iter begin, Iter const end)
 
template<class Iter >
static bool isStrictlyIncreasing (Iter begin, Iter const end)
 

Detailed Description

Definition at line 12 of file HcalConstFunctor.h.

Constructor & Destructor Documentation

HcalConstFunctor::HcalConstFunctor ( )

Definition at line 3 of file HcalConstFunctor.cc.

4  : value_(0.0)
5 {
6 }
HcalConstFunctor::HcalConstFunctor ( const double  value)
explicit

Definition at line 8 of file HcalConstFunctor.cc.

HcalConstFunctor::~HcalConstFunctor ( )
inlineoverride

Definition at line 21 of file HcalConstFunctor.h.

References operator()(), and x.

21 {}

Member Function Documentation

bool HcalConstFunctor::isEqual ( const AbsHcalFunctor other) const
inlineoverrideprotectedvirtual

Implements AbsHcalFunctor.

Definition at line 26 of file HcalConstFunctor.h.

References trackingPlots::other, alignCSCRings::r, and value_.

27  {
28  const HcalConstFunctor& r = static_cast<const HcalConstFunctor&>(other);
29  return value_ == r.value_;
30  }
double HcalConstFunctor::operator() ( double  x) const
overridevirtual

Implements AbsHcalFunctor.

Definition at line 13 of file HcalConstFunctor.cc.

References value_.

Referenced by ~HcalConstFunctor().

14 {
15  return value_;
16 }
template<class Archive >
void HcalConstFunctor::serialize ( Archive &  ar,
unsigned   
)
inlineprivate

Definition at line 38 of file HcalConstFunctor.h.

References value_.

39  {
40  boost::serialization::base_object<AbsHcalFunctor>(*this);
41  ar & value_;
42  }

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 35 of file HcalConstFunctor.h.

Member Data Documentation

double HcalConstFunctor::value_
private

Definition at line 33 of file HcalConstFunctor.h.

Referenced by isEqual(), operator()(), and serialize().