#include <Unit.h>
Inheritance diagram for Units::Prefixed< Prefixable< GT, U, ST >, P >:
Public Member Functions | |
ST | standard (const ST &value) const |
convert value in Prefixed into the standard unit | |
ST | reverse (const ST &value) const |
convert value in the standard unit into Prefixed | |
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 | |
ST | Standard (const ST &value) |
convert value in Prefixed into the standard unit | |
ST | standardRatio (void) |
determine the ratio between units for standardization | |
ST | Reverse (const ST &value) |
convert value in the standard unit into Prefixed | |
std::string | Name (void) |
the name of the Prefixed; | |
std::string | Symbol (void) |
the symbol of the Prefixed; |
all Prefixed<> Units thus defined are subclasses of Prefixable<GT, U, ST>, and characteristics of Prefixable<GT, U, ST> are used to determine the factor, the name and the symbol of the Prefixed Unit; the storage type ST determines the parameter and return type for the standard and reverse functions.
Definition at line 374 of file Unit.h.
|
return the name of this unit. dynamic access, to be used polymorphically if exact type is not known at compile time. Implements Units::Unit< GT, ST >. |
|
convert value in the standard unit into Prefixed converts additionally into storage type ST; dynamic access. Reimplemented from Units::Prefixable< GT, U, ST >. |
|
convert value in the standard unit into Prefixed converts additionally into storage type ST; static access. Reimplemented from Units::Prefixable< GT, U, ST >. |
|
convert value in Prefixed into the standard unit converts additionally into storage type ST; dynamic access. Reimplemented from Units::Prefixable< GT, U, ST >. |
|
convert value in Prefixed into the standard unit converts additionally into storage type ST; static access. Reimplemented from Units::Prefixable< GT, U, ST >. |
|
determine the ratio between units for standardization defines the extent of the current unit with respect to the standard unit; dynamic access. Reimplemented from Units::Prefixable< GT, U, ST >. |
|
return the symbol of this unit. dynamic access, to be used polymorphically if exact type is not known at compile time Implements Units::Unit< GT, ST >. |