CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
funct::Function< X1, X2, X3 > Struct Template Reference

#include <Function.h>

Public Member Functions

template<typename F >
 Function (const F &f)
 
double operator() (typename X1::type x1, typename X2::type x2, typename X3::type x3) const
 
std::ostream & print (std::ostream &cout) const
 

Private Attributes

Expression _f
 

Detailed Description

template<typename X1 = null_var, typename X2 = null_var, typename X3 = null_var>
struct funct::Function< X1, X2, X3 >

Definition at line 11 of file Function.h.

Constructor & Destructor Documentation

◆ Function()

template<typename X1 = null_var, typename X2 = null_var, typename X3 = null_var>
template<typename F >
funct::Function< X1, X2, X3 >::Function ( const F f)
inline

Definition at line 13 of file Function.h.

13 : _f(f) {}
double f[11][100]
Expression _f
Definition: Function.h:23

Member Function Documentation

◆ operator()()

template<typename X1 = null_var, typename X2 = null_var, typename X3 = null_var>
double funct::Function< X1, X2, X3 >::operator() ( typename X1::type  x1,
typename X2::type  x2,
typename X3::type  x3 
) const
inline

◆ print()

template<typename X1 = null_var, typename X2 = null_var, typename X3 = null_var>
std::ostream& funct::Function< X1, X2, X3 >::print ( std::ostream &  cout) const
inline

Definition at line 20 of file Function.h.

References funct::Function< X1, X2, X3 >::_f, gather_cfg::cout, and funct::Expression::print().

20 { return _f.print(cout); }
std::ostream & print(std::ostream &cout) const
Definition: Expression.h:38
Expression _f
Definition: Function.h:23

Member Data Documentation

◆ _f

template<typename X1 = null_var, typename X2 = null_var, typename X3 = null_var>
Expression funct::Function< X1, X2, X3 >::_f
private