CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 12 of file Function.h.

Constructor & Destructor Documentation

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 14 of file Function.h.

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

Member Function Documentation

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

Definition at line 15 of file Function.h.

References funct::Function< X1, X2, X3 >::_f.

17  {
18  X1::set(x1); X2::set(x2); X3::set(x3); return _f();
19  }
Expression _f
Definition: Function.h:22
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, and funct::Expression::print().

20 { return _f.print(cout); }
std::ostream & print(std::ostream &cout) const
Definition: Expression.h:34
Expression _f
Definition: Function.h:22
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

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