CMS 3D CMS Logo

funct::FractionStruct< n, m > Struct Template Reference

#include <PhysicsTools/Utilities/interface/Fraction.h>

List of all members.

Public Member Functions

 BOOST_STATIC_ASSERT (m!=0)
 operator double () const
double operator() (double, double) const
double operator() (double) const
double operator() () 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 12 of file Fraction.h.


Member Function Documentation

template<int n, int m>
funct::FractionStruct< n, m >::BOOST_STATIC_ASSERT ( m!  = 0  ) 

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

Definition at line 16 of file Fraction.h.

References funct::m, and n.

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

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

Definition at line 18 of file Fraction.h.

References funct::m, and n.

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

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

Definition at line 17 of file Fraction.h.

References funct::m, and n.

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

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

Definition at line 15 of file Fraction.h.

References funct::m, and n.

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


Member Data Documentation

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

Definition at line 14 of file Fraction.h.

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

Definition at line 14 of file Fraction.h.


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:47:01 2009 for CMSSW by  doxygen 1.5.4