npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::FunctorPowerFcnHelper< Functor > Class Template Reference

#include <SimpleFunctors.hh>

Inheritance diagram for npstat::FunctorPowerFcnHelper< Functor >:
npstat::Functor1< double, double >

Public Member Functions

 FunctorPowerFcnHelper (const Functor &fcn, const double power)
 
virtual double operator() (const double &x) const
 

Additional Inherited Members

- Public Types inherited from npstat::Functor1< double, double >
typedef double result_type
 
typedef double first_argument_type
 

Detailed Description

template<class Functor>
class npstat::FunctorPowerFcnHelper< Functor >

Useful functor for calculating powers of another functor or a cmath-style function. Does not make a copy of the argument functor, using only a reference.


The documentation for this class was generated from the following file: