#include <Unit.h>
Public Member Functions | |
bool | is_SI (void) const |
whether the unit is an SI unit; | |
bool | is_exact (void) const |
whether the unit conversion is defined exactly, | |
ST | standard (const ST &value) const |
convert value in Compound into the standard unit | |
ST | reverse (const ST &value) const |
convert value in the standard unit into Compound | |
const std::string | name (void) const |
return the name of this unit. | |
const std::string | symbol (void) const |
return the symbol of this unit. | |
Static Public Member Functions | |
bool | Is_SI (void) |
report whether the unit is an SI unit. | |
bool | Is_exact (void) |
report whether the unit is defined exactly. | |
ST | standardRatio (void) |
determine the ratio between units for standardization | |
ST | Standard (const ST value) |
convert value in Compound into the standard unit | |
ST | Reverse (const ST value) |
convert value in the standard unit into Compound | |
std::string | Name (void) |
the name of this unit. | |
std::string | Symbol (void) |
the symbol of this unit; | |
Private Types | |
typedef Loki::Typelist< U, UTail > | List |
typedef Composed< Compound< GT, CUL, ST >, List > | Unit |
typedef Compound< GT, CUL, ST > | Comp |
Template parameter GT is defined as for Unit; Composed is derived from a base class Compound, which ties together several Composed units for the same combination of GT and CUL; composition may be from any number of NonPrefixable, Prefixed or Composed units; the storage type ST determines the parameter and return type for the standard and reverse functions.
Definition at line 904 of file Unit.h.
|
whether the unit conversion is defined exactly, dynamic access. |
|
report whether the unit is defined exactly. static access |
|
whether the unit is an SI unit; dynamic access. |
|
return the name of this unit. dynamic access, to be used polymorphically if exact type is not known at compile time |
|
convert value in Compound into the standard unit dynamic access. |
|
convert value in Compound into the standard unit static access. |
|
determine the ratio between units for standardization defines the extent of the current unit with respect to the standard unit; dynamic access. |
|
return the symbol of this unit. dynamic access, to be used polymorphically if exact type is not known at compile time |