#include <Unit.h>
Inheritance diagram for Units::Unit< GT, ST >:

Public Member Functions | |
| virtual const std::string | name (void) const=0 |
| return the name of the unit; | |
| virtual const std::string | symbol (void) const=0 |
| return the symbol of the unit; | |
| virtual ST | standard (const ST &) const=0 |
| recalculate a value in the unit into a standardized value | |
| virtual ST | reverse (const ST &) const=0 |
| recalculate a standardized value into a value given in the unit | |
| virtual bool | is_SI (void) const=0 |
| whether the unit is an SI unit; | |
| virtual bool | is_exact (void) const=0 |
| whether the unit conversion is defined exactly, | |
Template parameter T is the group type, which ties the unit together with other template classes; the resulting specialized classes can be used as base units, see below.
Definition at line 185 of file Unit.h.
|
||||||||||
|
whether the unit conversion is defined exactly, dynamic access, to be used polymorphically Implemented in Units::NonPrefixable< GT, U, ST >, and Units::Prefixable< GT, U, ST >. |
|
||||||||||
|
whether the unit is an SI unit; dynamic access, to be used polymorphically Implemented in Units::NonPrefixable< GT, U, ST >, and Units::Prefixable< GT, U, ST >. |
|
||||||||||
|
return the name of the unit; dynamic access, to be used polymorphically Implemented in Units::NonPrefixable< GT, U, ST >, and Units::Prefixed< Prefixable< GT, U, ST >, P >. |
|
||||||||||
|
recalculate a standardized value into a value given in the unit dynamic access, to be used polymorphically Implemented in Units::NonPrefixable< GT, U, ST >, Units::Prefixed< Prefixable< GT, U, ST >, P >, and Units::Prefixable< GT, U, ST >. |
|
||||||||||
|
recalculate a value in the unit into a standardized value dynamic access, to be used polymorphically Implemented in Units::NonPrefixable< GT, U, ST >, Units::Prefixed< Prefixable< GT, U, ST >, P >, and Units::Prefixable< GT, U, ST >. |
|
||||||||||
|
return the symbol of the unit; dynamic access, to be used polymorphically Implemented in Units::NonPrefixable< GT, U, ST >, and Units::Prefixed< Prefixable< GT, U, ST >, P >. |
1.3.6