CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
fftjetcms::CompositeFunctor< T > Class Template Reference

#include <ScaleCalculators.h>

Inheritance diagram for fftjetcms::CompositeFunctor< T >:

Public Member Functions

 CompositeFunctor (const fftjet::Functor1< double, double > *f1, const fftjet::Functor1< double, T > *f2, const bool takeOwnership=false)
 
double operator() (const T &r) const override
 
 ~CompositeFunctor () override
 

Private Member Functions

 CompositeFunctor ()=delete
 

Private Attributes

const fftjet::Functor1< double, double > * f1_
 
const fftjet::Functor1< double, T > * f2_
 
const bool ownsPointers_
 

Detailed Description

template<class T>
class fftjetcms::CompositeFunctor< T >

Definition at line 62 of file ScaleCalculators.h.

Constructor & Destructor Documentation

template<class T >
fftjetcms::CompositeFunctor< T >::CompositeFunctor ( const fftjet::Functor1< double, double > *  f1,
const fftjet::Functor1< double, T > *  f2,
const bool  takeOwnership = false 
)
inline

Definition at line 64 of file ScaleCalculators.h.

67  : f1_(f1), f2_(f2), ownsPointers_(takeOwnership) {}
const fftjet::Functor1< double, T > * f2_
const fftjet::Functor1< double, double > * f1_
template<class T >
fftjetcms::CompositeFunctor< T >::~CompositeFunctor ( )
inlineoverride

Definition at line 69 of file ScaleCalculators.h.

69  {
70  if (ownsPointers_) {
71  delete f1_;
72  delete f2_;
73  }
74  }
const fftjet::Functor1< double, T > * f2_
const fftjet::Functor1< double, double > * f1_
template<class T >
fftjetcms::CompositeFunctor< T >::CompositeFunctor ( )
privatedelete

Member Function Documentation

template<class T >
double fftjetcms::CompositeFunctor< T >::operator() ( const T r) const
inlineoverride

Definition at line 76 of file ScaleCalculators.h.

References alignCSCRings::r.

76 { return (*f1_)((*f2_)(r)); }
const fftjet::Functor1< double, double > * f1_

Member Data Documentation

template<class T >
const fftjet::Functor1<double, double>* fftjetcms::CompositeFunctor< T >::f1_
private

Definition at line 80 of file ScaleCalculators.h.

template<class T >
const fftjet::Functor1<double, T>* fftjetcms::CompositeFunctor< T >::f2_
private

Definition at line 81 of file ScaleCalculators.h.

template<class T >
const bool fftjetcms::CompositeFunctor< T >::ownsPointers_
private

Definition at line 82 of file ScaleCalculators.h.