CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
funct::ProductStruct< A, B > Struct Template Reference

#include <Product.h>

Public Member Functions

 operator double () const
 
double operator() () const
 
double operator() (double x) const
 
double operator() (double x, double y) const
 
 ProductStruct (const A &a, const B &b)
 

Public Attributes

A _1
 
B _2
 

Detailed Description

template<typename A, typename B>
struct funct::ProductStruct< A, B >

Definition at line 7 of file Product.h.

Constructor & Destructor Documentation

template<typename A, typename B>
funct::ProductStruct< A, B >::ProductStruct ( const A a,
const B b 
)
inline

Definition at line 8 of file Product.h.

8 : _1(a), _2(b) { }
double a
Definition: hdecay.h:121

Member Function Documentation

template<typename A, typename B>
funct::ProductStruct< A, B >::operator double ( ) const
inline

Definition at line 12 of file Product.h.

References funct::ProductStruct< A, B >::_1, and funct::ProductStruct< A, B >::_2.

12  {
13  return _1() * _2();
14  }
template<typename A, typename B>
double funct::ProductStruct< A, B >::operator() ( ) const
inline

Definition at line 9 of file Product.h.

References funct::ProductStruct< A, B >::_1, and funct::ProductStruct< A, B >::_2.

9  {
10  return _1() * _2();
11  }
template<typename A, typename B>
double funct::ProductStruct< A, B >::operator() ( double  x) const
inline

Definition at line 15 of file Product.h.

References funct::ProductStruct< A, B >::_1, and funct::ProductStruct< A, B >::_2.

15  {
16  return _1(x) * _2(x);
17  }
x
Definition: VDTMath.h:216
template<typename A, typename B>
double funct::ProductStruct< A, B >::operator() ( double  x,
double  y 
) const
inline

Definition at line 18 of file Product.h.

References funct::ProductStruct< A, B >::_1, and funct::ProductStruct< A, B >::_2.

18  {
19  return _1(x, y) * _2(x, y);
20  }
x
Definition: VDTMath.h:216

Member Data Documentation

template<typename A, typename B>
A funct::ProductStruct< A, B >::_1
template<typename A, typename B>
B funct::ProductStruct< A, B >::_2