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::ExpressionT< F > Struct Template Reference

#include <Expression.h>

Inheritance diagram for funct::ExpressionT< F >:
funct::AbsExpression

Public Member Functions

AbsExpressionclone () const override
 
 ExpressionT (const F &f)
 
double operator() () const override
 
std::ostream & print (std::ostream &cout) const override
 
 ~ExpressionT () override
 
- Public Member Functions inherited from funct::AbsExpression
virtual ~AbsExpression ()
 

Private Attributes

F _f
 

Detailed Description

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

Definition at line 17 of file Expression.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file Expression.h.

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

Definition at line 19 of file Expression.h.

19 {}

Member Function Documentation

template<typename F >
AbsExpression* funct::ExpressionT< F >::clone ( void  ) const
inlineoverridevirtual

Implements funct::AbsExpression.

Definition at line 21 of file Expression.h.

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

21 { return new ExpressionT<F>(_f); }
template<typename F >
double funct::ExpressionT< F >::operator() ( ) const
inlineoverridevirtual

Implements funct::AbsExpression.

Definition at line 20 of file Expression.h.

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

20 { return _f(); }
template<typename F >
std::ostream& funct::ExpressionT< F >::print ( std::ostream &  cout) const
inlineoverridevirtual

Implements funct::AbsExpression.

Definition at line 22 of file Expression.h.

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

22 { return cout << _f; }
tuple cout
Definition: gather_cfg.py:144

Member Data Documentation

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