CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
funct::FractionStruct< n, m > Struct Template Reference

#include <Fraction.h>

Public Member Functions

 operator double () const
 
double operator() () const
 
double operator() (double) const
 
double operator() (double, double) const
 

Static Public Attributes

static const int denominator = m
 
static const int numerator = n
 

Detailed Description

template<int n, int m>
struct funct::FractionStruct< n, m >

Definition at line 11 of file Fraction.h.

Member Function Documentation

◆ operator double()

template<int n, int m>
funct::FractionStruct< n, m >::operator double ( ) const
inline

Definition at line 15 of file Fraction.h.

References funct::m, and dqmiodumpmetadata::n.

15 { return double(n) / double(m); }

◆ operator()() [1/3]

template<int n, int m>
double funct::FractionStruct< n, m >::operator() ( ) const
inline

Definition at line 14 of file Fraction.h.

References funct::m, and dqmiodumpmetadata::n.

14 { return double(n) / double(m); }

◆ operator()() [2/3]

template<int n, int m>
double funct::FractionStruct< n, m >::operator() ( double  ) const
inline

Definition at line 16 of file Fraction.h.

References funct::m, and dqmiodumpmetadata::n.

16 { return double(n) / double(m); }

◆ operator()() [3/3]

template<int n, int m>
double funct::FractionStruct< n, m >::operator() ( double  ,
double   
) const
inline

Definition at line 17 of file Fraction.h.

References funct::m, and dqmiodumpmetadata::n.

17 { return double(n) / double(m); }

Member Data Documentation

◆ denominator

template<int n, int m>
const int funct::FractionStruct< n, m >::denominator = m
static

Definition at line 13 of file Fraction.h.

◆ numerator

template<int n, int m>
const int funct::FractionStruct< n, m >::numerator = n
static

Definition at line 13 of file Fraction.h.