Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
gte::BSRational< UIntegerType > Class Template Reference

#include <GteBSNumber.h>

Public Member Functions

 BSRational ()
 
 BSRational (BSRational const &r)
 
 BSRational (float numerator)
 
 BSRational (double numerator)
 
 BSRational (int32_t numerator)
 
 BSRational (uint32_t numerator)
 
 BSRational (int64_t numerator)
 
 BSRational (uint64_t numerator)
 
 BSRational (BSNumber< UIntegerType > const &numerator)
 
 BSRational (float numerator, float denominator)
 
 BSRational (double numerator, double denominator)
 
 BSRational (BSNumber< UIntegerType > const &numerator, BSNumber< UIntegerType > const &denominator)
 
 BSRational (BSRational &&r)
 
BSNumber< UIntegerType > const & GetDenomator () const
 
BSNumber< UIntegerType > const & GetNumerator () const
 
int GetSign () const
 
 operator double () const
 
 operator float () const
 
bool operator!= (BSRational const &r) const
 
BSRational operator* (BSRational const &r) const
 
BSRationaloperator*= (BSRational const &r)
 
BSRational operator+ () const
 
BSRational operator+ (BSRational const &r) const
 
BSRationaloperator+= (BSRational const &r)
 
BSRational operator- () const
 
BSRational operator- (BSRational const &r) const
 
BSRationaloperator-= (BSRational const &r)
 
BSRational operator/ (BSRational const &r) const
 
BSRationaloperator/= (BSRational const &r)
 
bool operator< (BSRational const &r) const
 
bool operator<= (BSRational const &r) const
 
BSRationaloperator= (BSRational const &r)
 
BSRationaloperator= (BSRational &&r)
 
bool operator== (BSRational const &r) const
 
bool operator> (BSRational const &r) const
 
bool operator>= (BSRational const &r) const
 
bool Read (std::ifstream &input)
 
bool Write (std::ofstream &output) const
 

Private Member Functions

template<typename UIntType , typename RealType >
RealType Convert () const
 

Private Attributes

BSNumber< UIntegerType > mDenominator
 
BSNumber< UIntegerType > mNumerator
 

Friends

class UnitTestBSRational
 

Detailed Description

template<typename UIntegerType>
class gte::BSRational< UIntegerType >

Definition at line 68 of file GteBSNumber.h.

Constructor & Destructor Documentation

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( )

Definition at line 105 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( BSRational< UIntegerType > const &  r)

Definition at line 116 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( float  numerator)

Definition at line 122 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( double  numerator)

Definition at line 133 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( int32_t  numerator)

Definition at line 144 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( uint32_t  numerator)

Definition at line 155 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( int64_t  numerator)

Definition at line 166 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( uint64_t  numerator)

Definition at line 177 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( BSNumber< UIntegerType > const &  numerator)

Definition at line 188 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( float  numerator,
float  denominator 
)

Definition at line 199 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( double  numerator,
double  denominator 
)

Definition at line 216 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( BSNumber< UIntegerType > const &  numerator,
BSNumber< UIntegerType > const &  denominator 
)

Definition at line 233 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::BSRational ( BSRational< UIntegerType > &&  r)

Definition at line 284 of file GteBSRational.h.

Member Function Documentation

template<typename UIntegerType >
template<typename UIntType , typename RealType >
RealType gte::BSRational< UIntegerType >::Convert ( ) const
private

Definition at line 526 of file GteBSRational.h.

template<typename UIntegerType >
BSNumber< UIntegerType > const & gte::BSRational< UIntegerType >::GetDenomator ( ) const
inline

Definition at line 313 of file GteBSRational.h.

template<typename UIntegerType >
BSNumber< UIntegerType > const & gte::BSRational< UIntegerType >::GetNumerator ( ) const
inline

Definition at line 307 of file GteBSRational.h.

template<typename UIntegerType >
int gte::BSRational< UIntegerType >::GetSign ( ) const
inline

Definition at line 301 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::operator double ( ) const

Definition at line 266 of file GteBSRational.h.

template<typename UIntegerType >
gte::BSRational< UIntegerType >::operator float ( ) const

Definition at line 260 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::operator!= ( BSRational< UIntegerType > const &  r) const

Definition at line 336 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > gte::BSRational< UIntegerType >::operator* ( BSRational< UIntegerType > const &  r) const

Definition at line 438 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > & gte::BSRational< UIntegerType >::operator*= ( BSRational< UIntegerType > const &  r)

Definition at line 497 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > gte::BSRational< UIntegerType >::operator+ ( ) const

Definition at line 386 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > gte::BSRational< UIntegerType >::operator+ ( BSRational< UIntegerType > const &  r) const

Definition at line 398 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > & gte::BSRational< UIntegerType >::operator+= ( BSRational< UIntegerType > const &  r)

Definition at line 481 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > gte::BSRational< UIntegerType >::operator- ( ) const

Definition at line 392 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > gte::BSRational< UIntegerType >::operator- ( BSRational< UIntegerType > const &  r) const

Definition at line 418 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > & gte::BSRational< UIntegerType >::operator-= ( BSRational< UIntegerType > const &  r)

Definition at line 489 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > gte::BSRational< UIntegerType >::operator/ ( BSRational< UIntegerType > const &  r) const

Definition at line 456 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > & gte::BSRational< UIntegerType >::operator/= ( BSRational< UIntegerType > const &  r)

Definition at line 505 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::operator< ( BSRational< UIntegerType > const &  r) const

Definition at line 342 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::operator<= ( BSRational< UIntegerType > const &  r) const

Definition at line 368 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > & gte::BSRational< UIntegerType >::operator= ( BSRational< UIntegerType > const &  r)

Definition at line 272 of file GteBSRational.h.

template<typename UIntegerType >
BSRational< UIntegerType > & gte::BSRational< UIntegerType >::operator= ( BSRational< UIntegerType > &&  r)

Definition at line 290 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::operator== ( BSRational< UIntegerType > const &  r) const

Definition at line 319 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::operator> ( BSRational< UIntegerType > const &  r) const

Definition at line 374 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::operator>= ( BSRational< UIntegerType > const &  r) const

Definition at line 380 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::Read ( std::ifstream &  input)

Definition at line 519 of file GteBSRational.h.

template<typename UIntegerType >
bool gte::BSRational< UIntegerType >::Write ( std::ofstream &  output) const

Definition at line 513 of file GteBSRational.h.

Friends And Related Function Documentation

template<typename UIntegerType>
friend class UnitTestBSRational
friend

Definition at line 100 of file GteBSRational.h.

Member Data Documentation

template<typename UIntegerType>
BSNumber<UIntegerType> gte::BSRational< UIntegerType >::mDenominator
private

Definition at line 98 of file GteBSRational.h.

template<typename UIntegerType>
BSNumber<UIntegerType> gte::BSRational< UIntegerType >::mNumerator
private

Definition at line 98 of file GteBSRational.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:05