Wm4::TRational< N > Class Template Reference

#include <Wm4TRational.h>

List of all members.

Public Member Functions

TRational Abs () const
void ConvertTo (double &rdValue) const
void ConvertTo (float &rfValue) const
const TInteger< N > & Denom () const
TInteger< N > & Denom ()
const TInteger< N > & Numer () const
TInteger< N > & Numer ()
bool operator!= (const TRational &rkR) const
TRational operator* (const TRational &rkR) const
TRationaloperator*= (const TRational &rkR)
TRational operator+ (const TRational &rkR) const
TRationaloperator+= (const TRational &rkR)
TRational operator- () const
TRational operator- (const TRational &rkR) const
TRationaloperator-= (const TRational &rkR)
TRational operator/ (const TRational &rkR) const
TRationaloperator/= (const TRational &rkR)
bool operator< (const TRational &rkR) const
bool operator<= (const TRational &rkR) const
TRationaloperator= (const TRational &rkR)
bool operator== (const TRational &rkR) const
bool operator> (const TRational &rkR) const
bool operator>= (const TRational &rkR) const
 TRational (double dValue)
 TRational (float fValue)
 TRational (int iNumer, int iDenom)
 TRational (int iNumer)
 TRational (const TInteger< N > &rkNumer, const TInteger< N > &rkDenom)
 TRational (const TInteger< N > &rkNumer)
 TRational (const TRational &rkR)
 TRational ()

Detailed Description

template<int N>
class Wm4::TRational< N >

Definition at line 28 of file Wm4TRational.h.


Constructor & Destructor Documentation

template<int N>
Wm4::TRational< N >::TRational (  )  [inline]

Definition at line 21 of file Wm4TRational.inl.

template<int N>
Wm4::TRational< N >::TRational ( const TRational< N > &  rkR  )  [inline]

Definition at line 30 of file Wm4TRational.inl.

template<int N>
Wm4::TRational< N >::TRational ( const TInteger< N > &  rkNumer  )  [inline]

Definition at line 38 of file Wm4TRational.inl.

template<int N>
Wm4::TRational< N >::TRational ( const TInteger< N > &  rkNumer,
const TInteger< N > &  rkDenom 
) [inline]

Definition at line 46 of file Wm4TRational.inl.

template<int N>
Wm4::TRational< N >::TRational ( int  iNumer  )  [inline]

Definition at line 55 of file Wm4TRational.inl.

template<int N>
Wm4::TRational< N >::TRational ( int  iNumer,
int  iDenom 
) [inline]

Definition at line 63 of file Wm4TRational.inl.

template<int N>
Wm4::TRational< N >::TRational ( float  fValue  )  [inline]

Definition at line 331 of file Wm4TRational.inl.

References SketcherExample::f, and Py::value().

template<int N>
Wm4::TRational< N >::TRational ( double  dValue  )  [inline]

Definition at line 602 of file Wm4TRational.inl.

References Py::value().


Member Function Documentation

template<int N>
TRational< N > Wm4::TRational< N >::Abs (  )  const [inline]

Definition at line 292 of file Wm4TRational.inl.

template<int N>
void Wm4::TRational< N >::ConvertTo ( double &  rdValue  )  const [inline]

Definition at line 699 of file Wm4TRational.inl.

template<int N>
void Wm4::TRational< N >::ConvertTo ( float &  rfValue  )  const [inline]

Definition at line 415 of file Wm4TRational.inl.

template<int N>
const TInteger< N > & Wm4::TRational< N >::Denom (  )  const [inline]

Definition at line 89 of file Wm4TRational.inl.

template<int N>
TInteger< N > & Wm4::TRational< N >::Denom (  )  [inline]

Definition at line 77 of file Wm4TRational.inl.

Referenced by Wm4::operator*(), Wm4::operator+(), Wm4::operator-(), and Wm4::operator/().

template<int N>
const TInteger< N > & Wm4::TRational< N >::Numer (  )  const [inline]

Definition at line 83 of file Wm4TRational.inl.

template<int N>
TInteger< N > & Wm4::TRational< N >::Numer (  )  [inline]

Definition at line 71 of file Wm4TRational.inl.

Referenced by Wm4::operator*(), Wm4::operator+(), Wm4::operator-(), and Wm4::operator/().

template<int N>
bool Wm4::TRational< N >::operator!= ( const TRational< N > &  rkR  )  const [inline]

Definition at line 109 of file Wm4TRational.inl.

template<int N>
TRational< N > Wm4::TRational< N >::operator* ( const TRational< N > &  rkR  )  const [inline]

Definition at line 195 of file Wm4TRational.inl.

template<int N>
TRational< N > & Wm4::TRational< N >::operator*= ( const TRational< N > &  rkR  )  [inline]

Definition at line 276 of file Wm4TRational.inl.

template<int N>
TRational< N > Wm4::TRational< N >::operator+ ( const TRational< N > &  rkR  )  const [inline]

Definition at line 175 of file Wm4TRational.inl.

template<int N>
TRational< N > & Wm4::TRational< N >::operator+= ( const TRational< N > &  rkR  )  [inline]

Definition at line 260 of file Wm4TRational.inl.

template<int N>
TRational< N > Wm4::TRational< N >::operator- ( void   )  const [inline]

Definition at line 215 of file Wm4TRational.inl.

template<int N>
TRational< N > Wm4::TRational< N >::operator- ( const TRational< N > &  rkR  )  const [inline]

Definition at line 185 of file Wm4TRational.inl.

template<int N>
TRational< N > & Wm4::TRational< N >::operator-= ( const TRational< N > &  rkR  )  [inline]

Definition at line 268 of file Wm4TRational.inl.

template<int N>
TRational< N > Wm4::TRational< N >::operator/ ( const TRational< N > &  rkR  )  const [inline]

Definition at line 205 of file Wm4TRational.inl.

template<int N>
TRational< N > & Wm4::TRational< N >::operator/= ( const TRational< N > &  rkR  )  [inline]

Definition at line 284 of file Wm4TRational.inl.

template<int N>
bool Wm4::TRational< N >::operator< ( const TRational< N > &  rkR  )  const [inline]

Definition at line 130 of file Wm4TRational.inl.

template<int N>
bool Wm4::TRational< N >::operator<= ( const TRational< N > &  rkR  )  const [inline]

Definition at line 115 of file Wm4TRational.inl.

template<int N>
TRational< N > & Wm4::TRational< N >::operator= ( const TRational< N > &  rkR  )  [inline]

Definition at line 95 of file Wm4TRational.inl.

template<int N>
bool Wm4::TRational< N >::operator== ( const TRational< N > &  rkR  )  const [inline]

Definition at line 103 of file Wm4TRational.inl.

template<int N>
bool Wm4::TRational< N >::operator> ( const TRational< N > &  rkR  )  const [inline]

Definition at line 160 of file Wm4TRational.inl.

template<int N>
bool Wm4::TRational< N >::operator>= ( const TRational< N > &  rkR  )  const [inline]

Definition at line 145 of file Wm4TRational.inl.


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:50 2011 for FreeCAD by  doxygen 1.6.1