#include <Unit.h>
Static Public Member Functions | |
static double | Factor (void) |
the standardization factor | |
static bool | IsSI (void) |
whether the unit is an SI unit | |
static bool | IsExact (void) |
whether the unit can be converted numerically exact; | |
static std::string | Name (void) |
return the name of this unit | |
static std::string | Symbol (void) |
return the symbol for this unit | |
Static Private Attributes | |
static const double | StandardFactor = 1.0e-2 |
static const bool | SI = false |
report whether the unit is an SI unit. | |
static const bool | Exact = true |
report whether the unit can be converted numerically exact. | |
static const std::string | Namestring = "gal" |
the name of the unit | |
static const std::string | Symbolstring = "Gal" |
the symbol of the unit |
a unit which can not have a prefix; template parameters: UT - the unit type U - the unit it is derived from a base unit Unit<UT>; template parameter U is a dummy parameter distiguishing several differents units derived from Unit<UT>
Definition at line 115 of file Unit.h.
static double unit::NonPrefixable< UT, U >::Factor | ( | void | ) | [inline, static] |
the standardization factor
static access; call without reference to an object
Definition at line 144 of file Unit.h.
References unit::NonPrefixable< UT, U >::StandardFactor.
static bool unit::NonPrefixable< UT, U >::IsSI | ( | void | ) | [inline, static] |
whether the unit is an SI unit
static access; call without reference to an object
Definition at line 149 of file Unit.h.
References unit::NonPrefixable< UT, U >::SI.
Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::isSI().
static bool unit::NonPrefixable< UT, U >::IsExact | ( | void | ) | [inline, static] |
whether the unit can be converted numerically exact;
static access; call without reference to an object
Definition at line 154 of file Unit.h.
References unit::NonPrefixable< UT, U >::Exact.
Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::isExact().
static std::string unit::NonPrefixable< UT, U >::Name | ( | void | ) | [inline, static] |
return the name of this unit
Definition at line 159 of file Unit.h.
References unit::NonPrefixable< UT, U >::Namestring.
Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::name().
static std::string unit::NonPrefixable< UT, U >::Symbol | ( | void | ) | [inline, static] |
return the symbol for this unit
Definition at line 164 of file Unit.h.
References unit::NonPrefixable< UT, U >::Symbolstring.
Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::symbol().
const double quantity::empty::Unity::StandardFactor = 1.0e-2 [inline, static, private] |
the standard factor is stored as a double; for use with other types T it must be converted; the value must be defined outside of the class.
Definition at line 122 of file Unit.h.
Referenced by unit::NonPrefixable< UT, U >::Factor(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Factor().
const bool quantity::empty::Unity::SI = false [inline, static, private] |
report whether the unit is an SI unit.
Definition at line 125 of file Unit.h.
Referenced by unit::NonPrefixable< UT, U >::IsSI(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::IsSI().
const bool quantity::empty::Unity::Exact = true [inline, static, private] |
report whether the unit can be converted numerically exact.
Definition at line 128 of file Unit.h.
Referenced by unit::NonPrefixable< UT, U >::IsExact(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::IsExact().
const std::string quantity::empty::Unity::Namestring = "gal" [inline, static, private] |
the name of the unit
must be supplied by definition outside of class.
Definition at line 133 of file Unit.h.
Referenced by unit::NonPrefixable< UT, U >::Name(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Name().
const std::string quantity::empty::Unity::Symbolstring = "Gal" [inline, static, private] |
the symbol of the unit
must be supplied by definition outside of class.
Definition at line 138 of file Unit.h.
Referenced by unit::NonPrefixable< UT, U >::Symbol(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Symbol().