CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
funct::FunctExpressionT< F > Struct Template Reference

#include <Expression.h>

Inheritance diagram for funct::FunctExpressionT< F >:
funct::AbsFunctExpression

Public Member Functions

AbsFunctExpressionclone () const override
 
 FunctExpressionT (const F &f)
 
double operator() (double x) const override
 
 ~FunctExpressionT () override
 
- Public Member Functions inherited from funct::AbsFunctExpression
virtual ~AbsFunctExpression ()
 

Private Attributes

F _f
 

Detailed Description

template<typename F>
struct funct::FunctExpressionT< F >

Definition at line 56 of file Expression.h.

Constructor & Destructor Documentation

template<typename F >
funct::FunctExpressionT< F >::FunctExpressionT ( const F f)
inline

Definition at line 57 of file Expression.h.

template<typename F >
funct::FunctExpressionT< F >::~FunctExpressionT ( )
inlineoverride

Definition at line 58 of file Expression.h.

58 {}

Member Function Documentation

template<typename F >
AbsFunctExpression* funct::FunctExpressionT< F >::clone ( void  ) const
inlineoverridevirtual

Implements funct::AbsFunctExpression.

Definition at line 60 of file Expression.h.

References funct::FunctExpressionT< F >::_f.

60 { return new FunctExpressionT<F>(_f); }
template<typename F >
double funct::FunctExpressionT< F >::operator() ( double  x) const
inlineoverridevirtual

Implements funct::AbsFunctExpression.

Definition at line 59 of file Expression.h.

References funct::FunctExpressionT< F >::_f.

59 { return _f(x); }

Member Data Documentation

template<typename F >
F funct::FunctExpressionT< F >::_f
private