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::PowerStruct< A, B > Struct Template Reference

#include <Power.h>

Public Member Functions

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

Public Attributes

A _1
 
B _2
 

Detailed Description

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

Definition at line 8 of file Power.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file Power.h.

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

Member Function Documentation

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

Definition at line 13 of file Power.h.

References funct::PowerStruct< A, B >::_1, funct::PowerStruct< A, B >::_2, and funct::pow().

13  {
14  return std::pow(_1(), _2());
15  }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
template<typename A , typename B >
double funct::PowerStruct< A, B >::operator() ( ) const
inline

Definition at line 10 of file Power.h.

References funct::PowerStruct< A, B >::_1, funct::PowerStruct< A, B >::_2, and funct::pow().

10  {
11  return std::pow(_1(), _2());
12  }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
template<typename A , typename B >
double funct::PowerStruct< A, B >::operator() ( double  x) const
inline

Definition at line 16 of file Power.h.

References funct::PowerStruct< A, B >::_1, funct::PowerStruct< A, B >::_2, and funct::pow().

16  {
17  return std::pow(_1(x), _2(x));
18  }
x
Definition: VDTMath.h:216
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
template<typename A , typename B >
double funct::PowerStruct< A, B >::operator() ( double  x,
double  y 
) const
inline

Definition at line 19 of file Power.h.

References funct::PowerStruct< A, B >::_1, funct::PowerStruct< A, B >::_2, and funct::pow().

19  {
20  return std::pow(_1(x, y), _2(x, y));
21  }
x
Definition: VDTMath.h:216
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40

Member Data Documentation

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