#include <SEScalarLength.h>

Inherits CCompoundUnit.

Public Member Functions

 LengthUnit (const std::string &u)
 
virtual ~LengthUnit ()
 
 LengthUnit (const LengthUnit &)=delete
 
LengthUnitoperator= (const LengthUnit &)=delete
 
- Public Member Functions inherited from CCompoundUnit
 CCompoundUnit ()
 
 CCompoundUnit (const std::string &unitString)
 
 CCompoundUnit (const CCompoundUnit &src)
 
virtual ~CCompoundUnit ()
 
const CUnitDimensionGetDimension () const
 
const double & GetBigness () const
 
double GetBias () const
 
CCompoundUnitoperator= (const CCompoundUnit &rhs)
 
CCompoundUnitoperator*= (const CCompoundUnit &rhs)
 
CCompoundUnitoperator/= (const CCompoundUnit &rhs)
 
CCompoundUnit operator* (const CCompoundUnit &rhs) const
 
CCompoundUnit operator/ (const CCompoundUnit &rhs) const
 
CCompoundUnitRaise (CCompoundUnitElement::ExponentType)
 
bool operator== (const CCompoundUnit &rhs) const
 
bool operator!= (const CCompoundUnit &rhs) const
 
bool IsOfType (int quantityTypeID)
 
bool IsOfType (const std::string &quantityName)
 
bool IsDimensionless () const
 
bool IsDecibel () const
 
bool IsUnitEmpty () const
 
double GetDecibelLogScaleFactor () const
 
void DecibelModeOn ()
 
void DecibelModeOff ()
 
CCompoundUnitElementAddElement (const CCompoundUnitElement &)
 
void clear ()
 
void ParseString (const std::string &unitString)
 
std::string GetString () const
 
std::ostream & PrintSelf (std::ostream &output) const
 

Static Public Member Functions

static bool IsValidUnit (const std::string &unit)
 
static const LengthUnitGetCompoundUnit (const std::string &unit)
 

Static Public Attributes

static const LengthUnit m
 
static const LengthUnit cm
 
static const LengthUnit mm
 
static const LengthUnit um
 
static const LengthUnit in
 
static const LengthUnit ft
 

Additional Inherited Members

- Protected Member Functions inherited from CCompoundUnit
void BuildDimension () const
 
void ComputeBigness () const
 

Constructor & Destructor Documentation

◆ LengthUnit() [1/2]

LengthUnit::LengthUnit ( const std::string &  u)
inline

◆ ~LengthUnit()

virtual LengthUnit::~LengthUnit ( )
inlinevirtual

◆ LengthUnit() [2/2]

LengthUnit::LengthUnit ( const LengthUnit )
delete

Member Function Documentation

◆ GetCompoundUnit()

const LengthUnit & LengthUnit::GetCompoundUnit ( const std::string &  unit)
static

◆ IsValidUnit()

bool LengthUnit::IsValidUnit ( const std::string &  unit)
static

◆ operator=()

LengthUnit & LengthUnit::operator= ( const LengthUnit )
delete

Member Data Documentation

◆ cm

const LengthUnit LengthUnit::cm
static

◆ ft

const LengthUnit LengthUnit::ft
static

◆ in

const LengthUnit LengthUnit::in
static

◆ m

const LengthUnit LengthUnit::m
static

◆ mm

const LengthUnit LengthUnit::mm
static

◆ um

const LengthUnit LengthUnit::um
static

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.