CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Friends
AbsHcalFunctor Class Referenceabstract

#include <AbsHcalFunctor.h>

Inheritance diagram for AbsHcalFunctor:
HcalChebyshevFunctor HcalConstFunctor HcalCubicInterpolator HcalInterpolatedTableFunctor HcalLinearCompositionFunctor HcalPiecewiseLinearFunctor HcalPolynomialFunctor

Public Member Functions

bool operator!= (const AbsHcalFunctor &r) const
 
virtual double operator() (double x) const =0
 
bool operator== (const AbsHcalFunctor &r) const
 
virtual double xmax () const
 
virtual double xmin () const
 
virtual ~AbsHcalFunctor ()
 

Protected Member Functions

virtual bool isEqual (const AbsHcalFunctor &) const =0
 

Static Protected Member Functions

template<class Iter >
static bool isStrictlyDecreasing (Iter begin, Iter const end)
 
template<class Iter >
static bool isStrictlyIncreasing (Iter begin, Iter const end)
 

Private Member Functions

template<typename Ar >
void serialize (Ar &ar, unsigned)
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 19 of file AbsHcalFunctor.h.

Constructor & Destructor Documentation

◆ ~AbsHcalFunctor()

virtual AbsHcalFunctor::~AbsHcalFunctor ( )
inlinevirtual

Definition at line 21 of file AbsHcalFunctor.h.

21 {}

Member Function Documentation

◆ isEqual()

virtual bool AbsHcalFunctor::isEqual ( const AbsHcalFunctor ) const
protectedpure virtual

◆ isStrictlyDecreasing()

template<class Iter >
static bool AbsHcalFunctor::isStrictlyDecreasing ( Iter  begin,
Iter const  end 
)
inlinestaticprotected

Definition at line 56 of file AbsHcalFunctor.h.

References SplitLinear::begin, mps_fire::end, dqmdumpme::first, and mps_update::status.

Referenced by HcalCubicInterpolator::approximateInverse(), HcalInterpolatedTableFunctor::isStrictlyMonotonous(), and HcalPiecewiseLinearFunctor::isStrictlyMonotonous().

56  {
57  if (begin == end)
58  return false;
59  Iter first(begin);
60  bool status = ++begin != end;
61  for (; begin != end && status; ++begin, ++first)
62  if (!(*begin < *first))
63  status = false;
64  return status;
65  }

◆ isStrictlyIncreasing()

template<class Iter >
static bool AbsHcalFunctor::isStrictlyIncreasing ( Iter  begin,
Iter const  end 
)
inlinestaticprotected

◆ operator!=()

bool AbsHcalFunctor::operator!= ( const AbsHcalFunctor r) const
inline

Definition at line 34 of file AbsHcalFunctor.h.

References alignCSCRings::r.

34 { return !(*this == r); }

◆ operator()()

virtual double AbsHcalFunctor::operator() ( double  x) const
pure virtual

◆ operator==()

bool AbsHcalFunctor::operator== ( const AbsHcalFunctor r) const
inline

Definition at line 33 of file AbsHcalFunctor.h.

References isEqual(), and alignCSCRings::r.

33 { return (typeid(*this) == typeid(r)) && this->isEqual(r); }
virtual bool isEqual(const AbsHcalFunctor &) const =0

◆ serialize()

template<typename Ar >
void AbsHcalFunctor::serialize ( Ar &  ar,
unsigned   
)
inlineprivate

Definition at line 70 of file AbsHcalFunctor.h.

70 {}

◆ xmax()

virtual double AbsHcalFunctor::xmax ( ) const
inlinevirtual

◆ xmin()

virtual double AbsHcalFunctor::xmin ( ) const
inlinevirtual

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 68 of file AbsHcalFunctor.h.