CMS 3D CMS Logo

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

#include <Composition.h>

Public Member Functions

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

Public Attributes

A _1
 
B _2
 

Detailed Description

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

Definition at line 6 of file Composition.h.

Constructor & Destructor Documentation

◆ CompositionStruct()

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

Definition at line 7 of file Composition.h.

7 : _1(a), _2(b) {}

Member Function Documentation

◆ operator double()

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

Definition at line 9 of file Composition.h.

9 { return _1(_2()); }

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

◆ operator()() [1/3]

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

Definition at line 8 of file Composition.h.

8 { return _1(_2()); }

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

◆ operator()() [2/3]

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

Definition at line 10 of file Composition.h.

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

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

◆ operator()() [3/3]

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

Definition at line 11 of file Composition.h.

11 { return _1(_2(x, y)); }

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

Member Data Documentation

◆ _1

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

◆ _2

template<typename A , typename B >
B funct::CompositionStruct< A, B >::_2
DDAxes::y
funct::CompositionStruct::_2
B _2
Definition: Composition.h:13
DDAxes::x
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
funct::CompositionStruct::_1
A _1
Definition: Composition.h:12