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::IntegralStruct< F, X > Struct Template Reference

#include <Integral.h>

Public Member Functions

 IntegralStruct (const F &f)
 
double operator() (double min, double max) const
 

Private Attributes

Primitive< F, X >::type p
 

Detailed Description

template<typename F, typename X = no_var>
struct funct::IntegralStruct< F, X >

Definition at line 11 of file Integral.h.

Constructor & Destructor Documentation

template<typename F , typename X = no_var>
funct::IntegralStruct< F, X >::IntegralStruct ( const F f)
inline

Definition at line 12 of file Integral.h.

12 : p(primitive<X>(f)) { }
Primitive< F, X >::type p
Definition: Integral.h:19
double f[11][100]

Member Function Documentation

template<typename F , typename X = no_var>
double funct::IntegralStruct< F, X >::operator() ( double  min,
double  max 
) const
inline

Definition at line 13 of file Integral.h.

References funct::IntegralStruct< F, X >::p.

13  {
14  X::set(min); double pMin = p();
15  X::set(max); double pMax = p();
16  return pMax - pMin;
17  }
const T & max(const T &a, const T &b)
Primitive< F, X >::type p
Definition: Integral.h:19

Member Data Documentation

template<typename F , typename X = no_var>
Primitive<F, X>::type funct::IntegralStruct< F, X >::p
private