UnitInterface Class Reference

#include <units.h>

Public Member Functions

MAXON_METHOD const IdGetId () const
 
MAXON_METHOD const Dimension & GetDimension () const
 
MAXON_METHOD Float GetSIConversionFactor () const
 
MAXON_METHOD Result< Unit > operator* (const Result< Unit > &u) const
 
MAXON_METHOD Result< Unit > operator/ (const Result< Unit > &u) const
 
MAXON_METHOD Result< Unit > operator^ (Int exponent) const
 
MAXON_METHOD Result< Unit > Copy (const Id &uid) const
 
MAXON_METHOD Result< Unit > Copy (const Dimension &quantity) const
 
MAXON_METHOD Result< void > AddToDimension () const
 
MAXON_METHOD Result< Unit > Reduce () const
 
MAXON_METHOD String ToString (const FormatStatement *fs=nullptr) const
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (UnitInterface, MAXON_REFERENCE_CONST, "net.maxon.interface.unit")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( UnitInterface  ,
MAXON_REFERENCE_CONST  ,
"net.maxon.interface.unit"   
)
private

◆ GetId()

MAXON_METHOD const Id& GetId ( ) const

◆ GetDimension()

MAXON_METHOD const Dimension& GetDimension ( ) const

◆ GetSIConversionFactor()

MAXON_METHOD Float GetSIConversionFactor ( ) const

◆ operator*()

MAXON_METHOD Result<Unit> operator* ( const Result< Unit > &  u) const

◆ operator/()

MAXON_METHOD Result<Unit> operator/ ( const Result< Unit > &  u) const

◆ operator^()

MAXON_METHOD Result<Unit> operator^ ( Int  exponent) const

◆ Copy() [1/2]

MAXON_METHOD Result<Unit> Copy ( const Id uid) const

◆ Copy() [2/2]

MAXON_METHOD Result<Unit> Copy ( const Dimension &  quantity) const

◆ AddToDimension()

MAXON_METHOD Result<void> AddToDimension ( ) const

◆ Reduce()

MAXON_METHOD Result<Unit> Reduce ( ) const

◆ ToString()

MAXON_METHOD String ToString ( const FormatStatement fs = nullptr) const