CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
funct::SumStruct< A, B > Struct Template Reference

#include <Sum.h>

Public Member Functions

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

Public Attributes

A _1
 
B _2
 

Detailed Description

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

Definition at line 7 of file Sum.h.

Constructor & Destructor Documentation

◆ SumStruct()

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

Definition at line 8 of file Sum.h.

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

Member Function Documentation

◆ operator double()

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

Definition at line 10 of file Sum.h.

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

10 { return _1() + _2(); }

◆ operator()() [1/3]

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

Definition at line 9 of file Sum.h.

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

9 { return _1() + _2(); }

◆ operator()() [2/3]

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

Definition at line 11 of file Sum.h.

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

11 { return _1(x) + _2(x); }

◆ operator()() [3/3]

template<typename A, typename B>
double funct::SumStruct< A, B >::operator() ( double  x,
double  y 
) const
inline

Definition at line 12 of file Sum.h.

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

12 { return _1(x, y) + _2(x, y); }

Member Data Documentation

◆ _1

template<typename A, typename B>
A funct::SumStruct< A, B >::_1

◆ _2

template<typename A, typename B>
B funct::SumStruct< A, B >::_2