CMS 3D CMS Logo

Public Member Functions | Private Attributes

funct::Function< X1, X2, X3 > Struct Template Reference

#include <Function.h>

List of all members.

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.

: _f(f) { }

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.

                                                { 
     X1::set(x1); X2::set(x2); X3::set(x3); return _f(); 
    }
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().

{ return _f.print(cout); }

Member Data Documentation

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