biogears::CCompoundUnitElement Class Reference

#include <CompoundUnitElement.h>

Public Types

typedef CSnapValue ExponentType
 

Public Member Functions

 CCompoundUnitElement ()
 
 CCompoundUnitElement (int unitId, ExponentType exponent=1.0, int prefixID=-1)
 
 CCompoundUnitElement (const CCompoundUnitElement &src)
 
CCompoundUnitElementoperator= (const CCompoundUnitElement &rhs)
 
void SetUnitID (int unitID)
 
int GetUnitID () const
 
void SetExponent (const ExponentType &exponent)
 
void AddExponent (const ExponentType &exponent)
 
void MultExponent (const ExponentType &exppwr)
 
void SubtractExponent (const ExponentType &exponent)
 
const ExponentTypeGetExponent () const
 
void SetPrefixID (int prefixID)
 
int GetPrefixID () const
 
bool operator< (const CCompoundUnitElement &ref) const
 
bool operator== (const CCompoundUnitElement &ref) const
 
void Invert ()
 
double GetBigness () const
 
double GetBias () const
 
bool IsDecibel () const
 

Private Attributes

int m_iUnitID
 
ExponentType m_CExponent
 
int m_iPrefixID
 

Member Typedef Documentation

Constructor & Destructor Documentation

biogears::CCompoundUnitElement::CCompoundUnitElement ( )
inline
biogears::CCompoundUnitElement::CCompoundUnitElement ( int  unitId,
ExponentType  exponent = 1.0,
int  prefixID = -1 
)
inline
biogears::CCompoundUnitElement::CCompoundUnitElement ( const CCompoundUnitElement src)
inline

Member Function Documentation

void biogears::CCompoundUnitElement::AddExponent ( const ExponentType exponent)
inline
double biogears::CCompoundUnitElement::GetBias ( ) const
double biogears::CCompoundUnitElement::GetBigness ( ) const
const ExponentType& biogears::CCompoundUnitElement::GetExponent ( ) const
inline
int biogears::CCompoundUnitElement::GetPrefixID ( ) const
inline
int biogears::CCompoundUnitElement::GetUnitID ( ) const
inline
void biogears::CCompoundUnitElement::Invert ( )
inline
bool biogears::CCompoundUnitElement::IsDecibel ( ) const
void biogears::CCompoundUnitElement::MultExponent ( const ExponentType exppwr)
inline
bool biogears::CCompoundUnitElement::operator< ( const CCompoundUnitElement ref) const
inline
CCompoundUnitElement& biogears::CCompoundUnitElement::operator= ( const CCompoundUnitElement rhs)
inline
bool biogears::CCompoundUnitElement::operator== ( const CCompoundUnitElement ref) const
inline
void biogears::CCompoundUnitElement::SetExponent ( const ExponentType exponent)
inline
void biogears::CCompoundUnitElement::SetPrefixID ( int  prefixID)
inline
void biogears::CCompoundUnitElement::SetUnitID ( int  unitID)
inline
void biogears::CCompoundUnitElement::SubtractExponent ( const ExponentType exponent)
inline

Member Data Documentation

ExponentType biogears::CCompoundUnitElement::m_CExponent
private
int biogears::CCompoundUnitElement::m_iPrefixID
private
int biogears::CCompoundUnitElement::m_iUnitID
private