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() [1/2]

HcalConstFunctor::HcalConstFunctor ( )

Definition at line 3 of file HcalConstFunctor.cc.

3 : value_(0.0) {}

◆ HcalConstFunctor() [2/2]

HcalConstFunctor::HcalConstFunctor ( const double  value)
explicit

Definition at line 5 of file HcalConstFunctor.cc.

5 : value_(d) {}
d
Definition: ztail.py:151

◆ ~HcalConstFunctor()

HcalConstFunctor::~HcalConstFunctor ( )
inlineoverride

Definition at line 20 of file HcalConstFunctor.h.

20 {}

Member Function Documentation

◆ isEqual()

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

Implements AbsHcalFunctor.

Definition at line 25 of file HcalConstFunctor.h.

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

25  {
26  const HcalConstFunctor& r = static_cast<const HcalConstFunctor&>(other);
27  return value_ == r.value_;
28  }

◆ operator()()

double HcalConstFunctor::operator() ( double  x) const
overridevirtual

Implements AbsHcalFunctor.

Definition at line 7 of file HcalConstFunctor.cc.

References value_.

7 { return value_; }

◆ serialize()

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

Definition at line 36 of file HcalConstFunctor.h.

References value_.

36  {
37  boost::serialization::base_object<AbsHcalFunctor>(*this);
38  ar& value_;
39  }

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 33 of file HcalConstFunctor.h.

Member Data Documentation

◆ value_

double HcalConstFunctor::value_
private

Definition at line 31 of file HcalConstFunctor.h.

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