#include <Unit.h>
Public Member Functions | |
bool | isSI (void) const |
whether the unit is an SI unit; | |
std::string | name (void) const |
return the name of this unit. | |
std::string | symbol (void) const |
return the symbol of this unit. | |
Static Public Member Functions | |
static bool | IsSI (void) |
whether the unit is an SI unit; | |
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 bool | SI = false |
report whether the unit is an SI unit. | |
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; it is derived from a base unit Unit<BT>; template parameter U is a dummy parameter distiguishing several differents units derived from Unit<BT>
Definition at line 188 of file Unit.h.
static bool unit::NonPrefixable< BT, U >::IsSI | ( | void | ) | [inline, static] |
whether the unit is an SI unit;
for static access without having definition of isSI available; common interface for all Units, can not be virtual since it is static member function
Definition at line 210 of file Unit.h.
References unit::NonPrefixable< BT, U >::SI.
Referenced by unit::NonPrefixable< BT, U >::isSI(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::isSI().
bool unit::NonPrefixable< BT, U >::isSI | ( | void | ) | const [inline, virtual] |
whether the unit is an SI unit;
dynamic access.
Implements unit::Unit< BT >.
Definition at line 215 of file Unit.h.
References unit::NonPrefixable< BT, U >::IsSI().
static std::string unit::NonPrefixable< BT, U >::Name | ( | void | ) | [inline, static] |
return the name of this unit.
Definition at line 224 of file Unit.h.
References unit::NonPrefixable< BT, U >::Namestring.
Referenced by unit::NonPrefixable< BT, U >::name(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::name().
std::string unit::NonPrefixable< BT, U >::name | ( | void | ) | const [inline, virtual] |
return the name of this unit.
dynamic access, to be used polymorphically if exact type is not known at compile time
Implements unit::Unit< BT >.
Definition at line 230 of file Unit.h.
References unit::NonPrefixable< BT, U >::Name().
static std::string unit::NonPrefixable< BT, U >::Symbol | ( | void | ) | [inline, static] |
return the symbol for this unit;
Definition at line 239 of file Unit.h.
References unit::NonPrefixable< BT, U >::Symbolstring.
Referenced by unit::NonPrefixable< BT, U >::symbol(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::symbol().
std::string unit::NonPrefixable< BT, U >::symbol | ( | void | ) | const [inline, virtual] |
return the symbol of this unit.
dynamic access, to be used polymorphically if exact type is not known at compile time
Implements unit::Unit< BT >.
Definition at line 245 of file Unit.h.
References unit::NonPrefixable< BT, U >::Symbol().
const bool quantity::empty::Unity::SI = false [inline, static, private] |
report whether the unit is an SI unit.
Definition at line 192 of file Unit.h.
Referenced by unit::NonPrefixable< BT, U >::IsSI(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::IsSI().
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 197 of file Unit.h.
Referenced by unit::NonPrefixable< BT, 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 202 of file Unit.h.
Referenced by unit::NonPrefixable< BT, U >::Symbol(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Symbol().