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) {}

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

Definition at line 14 of file Function.h.

14  {
15  X1::set(x1);
16  X2::set(x2);
17  X3::set(x3);
18  return _f();
19  }

References funct::Function< X1, X2, X3 >::_f, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

◆ 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.

20 { return _f.print(cout); }

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

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
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
testProducerWithPsetDescEmpty_cfi.x2
x2
Definition: testProducerWithPsetDescEmpty_cfi.py:28
gather_cfg.cout
cout
Definition: gather_cfg.py:144
funct::Expression::print
std::ostream & print(std::ostream &cout) const
Definition: Expression.h:38
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
funct::Function::_f
Expression _f
Definition: Function.h:23