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 &) 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

◆ ExponentType

Constructor & Destructor Documentation

◆ CCompoundUnitElement() [1/3]

CCompoundUnitElement::CCompoundUnitElement ( )
inline

◆ CCompoundUnitElement() [2/3]

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

◆ CCompoundUnitElement() [3/3]

CCompoundUnitElement::CCompoundUnitElement ( const CCompoundUnitElement src)
inline

Member Function Documentation

◆ AddExponent()

void CCompoundUnitElement::AddExponent ( const ExponentType exponent)
inline

◆ GetBias()

double CCompoundUnitElement::GetBias ( ) const

◆ GetBigness()

double CCompoundUnitElement::GetBigness ( ) const

◆ GetExponent()

const ExponentType & CCompoundUnitElement::GetExponent ( ) const
inline

◆ GetPrefixID()

int CCompoundUnitElement::GetPrefixID ( ) const
inline

◆ GetUnitID()

int CCompoundUnitElement::GetUnitID ( ) const
inline

◆ Invert()

void CCompoundUnitElement::Invert ( )
inline

◆ IsDecibel()

bool CCompoundUnitElement::IsDecibel ( ) const

◆ MultExponent()

void CCompoundUnitElement::MultExponent ( const ExponentType exppwr)
inline

◆ operator<()

bool CCompoundUnitElement::operator< ( const CCompoundUnitElement ) const
inline

◆ operator=()

CCompoundUnitElement & CCompoundUnitElement::operator= ( const CCompoundUnitElement rhs)
inline

◆ operator==()

bool CCompoundUnitElement::operator== ( const CCompoundUnitElement ref) const
inline

◆ SetExponent()

void CCompoundUnitElement::SetExponent ( const ExponentType exponent)
inline

◆ SetPrefixID()

void CCompoundUnitElement::SetPrefixID ( int  prefixID)
inline

◆ SetUnitID()

void CCompoundUnitElement::SetUnitID ( int  unitID)
inline

◆ SubtractExponent()

void CCompoundUnitElement::SubtractExponent ( const ExponentType exponent)
inline

Member Data Documentation

◆ m_CExponent

ExponentType CCompoundUnitElement::m_CExponent
private

◆ m_iPrefixID

int CCompoundUnitElement::m_iPrefixID
private

◆ m_iUnitID

int CCompoundUnitElement::m_iUnitID
private

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.