CMS 3D CMS Logo

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

#include <SimplifyRatio.h>

Public Types

typedef Power< A, B >::type arg1
 
typedef Power< A, C >::type arg2
 
typedef Power< A, typename
Difference< B, C >::type >
::type 
type
 

Static Public Member Functions

static type combine (const arg1 &_1, const arg2 &_2)
 

Detailed Description

template<typename A, typename B, typename C>
struct funct::SimplifyPowerRatio< A, B, C, false >

Definition at line 115 of file SimplifyRatio.h.

Member Typedef Documentation

template<typename A , typename B , typename C >
typedef Power< A , B >::type funct::SimplifyPowerRatio< A, B, C, false >::arg1

Definition at line 116 of file SimplifyRatio.h.

template<typename A , typename B , typename C >
typedef Power< A , C >::type funct::SimplifyPowerRatio< A, B, C, false >::arg2

Definition at line 117 of file SimplifyRatio.h.

template<typename A , typename B , typename C >
typedef Power< A , typename Difference< B , C >::type >::type funct::SimplifyPowerRatio< A, B, C, false >::type

Definition at line 118 of file SimplifyRatio.h.

Member Function Documentation

template<typename A , typename B , typename C >
static type funct::SimplifyPowerRatio< A, B, C, false >::combine ( const arg1 _1,
const arg2 _2 
)
inlinestatic

Definition at line 119 of file SimplifyRatio.h.

References funct::pow().

119  {
120  return pow(DecomposePower<A, B>::getBase(_1),
121  (DecomposePower<A, B>::getExp(_1) -
122  DecomposePower<A, C>::getExp(_2))); }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40