DimensionInterface Class Reference

#include <units.h>

Inheritance diagram for DimensionInterface:

Public Member Functions

MAXON_METHOD const IdGetId () const
 
MAXON_METHOD Result< Dimension > operator* (const Result< Dimension > &q) const
 
MAXON_METHOD Result< Dimension > operator/ (const Result< Dimension > &q) const
 
MAXON_METHOD Result< Dimension > operator^ (Int exponent) const
 
MAXON_METHOD Result< Dimension > Copy (const Id &qid) const
 
MAXON_METHOD Int GetExponent (BASE_DIMENSION q) const
 
MAXON_METHOD Result< Unit > AddUnit (const Id &unitId, Float siConversionFactor) const
 
MAXON_METHOD UnitsArray GetUnits () const
 
MAXON_METHOD Bool IsEquivalent (const Dimension &other) const
 
MAXON_METHOD String ToString (const FormatStatement *fs=nullptr) const
 

Static Public Member Functions

static MAXON_METHOD const Dimension & Get (BASE_DIMENSION q)
 

Private Member Functions

 MAXON_INTERFACE (DimensionInterface, MAXON_REFERENCE_CONST, "net.maxon.interface.dimension")
 

Private Attributes

 MAXON_INTERFACE_SINGLE_IMPLEMENTATION
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( DimensionInterface  ,
MAXON_REFERENCE_CONST  ,
"net.maxon.interface.dimension"   
)
private

◆ Get()

static MAXON_METHOD const Dimension& Get ( BASE_DIMENSION  q)
static

◆ GetId()

MAXON_METHOD const Id& GetId ( ) const

◆ operator*()

MAXON_METHOD Result<Dimension> operator* ( const Result< Dimension > &  q) const

◆ operator/()

MAXON_METHOD Result<Dimension> operator/ ( const Result< Dimension > &  q) const

◆ operator^()

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

◆ Copy()

MAXON_METHOD Result<Dimension> Copy ( const Id qid) const

◆ GetExponent()

MAXON_METHOD Int GetExponent ( BASE_DIMENSION  q) const

◆ AddUnit()

MAXON_METHOD Result<Unit> AddUnit ( const Id unitId,
Float  siConversionFactor 
) const

◆ GetUnits()

MAXON_METHOD UnitsArray GetUnits ( ) const

◆ IsEquivalent()

MAXON_METHOD Bool IsEquivalent ( const Dimension &  other) const

◆ ToString()

MAXON_METHOD String ToString ( const FormatStatement fs = nullptr) const

Member Data Documentation

◆ MAXON_INTERFACE_SINGLE_IMPLEMENTATION

MAXON_INTERFACE_SINGLE_IMPLEMENTATION
private