#include <Quantity.h>
Public Member Functions | |
virtual std::string | unitsymbol (void) const =0 |
return the symbol of the storage unit | |
virtual std::string | unitname (void) const =0 |
return the name of the storage unit | |
virtual bool | isDimensionless (void) const =0 |
return whether the quantity is dimensionless | |
virtual | ~Quantities (void) |
destructor | |
Static Public Member Functions | |
static std::string | Version (void) |
the version of all Quantities classes | |
static std::string | version (void) |
return the version of a Quantities object; |
defines common abilities of all quantities
Definition at line 659 of file Quantity.h.
virtual quantity::Quantities::~Quantities | ( | void | ) | [inline, virtual] |
destructor
Since this is a polymorphic class, the destructor should be virtual; it is empty.
Definition at line 694 of file Quantity.h.
static std::string quantity::Quantities::Version | ( | void | ) | [inline, static] |
the version of all Quantities classes
The version is returned by a static function as a std::string; statuc access.
Definition at line 666 of file Quantity.h.
References QUANTITIES_VERSION.
Referenced by version().
static std::string quantity::Quantities::version | ( | void | ) | [inline, static] |
return the version of a Quantities object;
The version is returned by static function as a std::string; dynamic access.
Definition at line 673 of file Quantity.h.
References Version().
virtual std::string quantity::Quantities::unitsymbol | ( | void | ) | const [pure virtual] |
return the symbol of the storage unit
pure virtual, must be overridden in all desscendants of Quantity
Implemented in quantity::Constant< Quantity< QT, ST >, DerivedQuantity< QT, SU, DQT > >, quantity::UniqueConstant< Quantity< QT, ST >, DerivedQuantity< QT, SU, DQT > >, and quantity::Variable< Quantity< QT, ST >, DerivedQuantity< QT, SU, DQT > >.
virtual std::string quantity::Quantities::unitname | ( | void | ) | const [pure virtual] |
return the name of the storage unit
pure virtual, must be overridden in all descendants of Quantity
Implemented in quantity::Constant< Quantity< QT, ST >, DerivedQuantity< QT, SU, DQT > >, quantity::UniqueConstant< Quantity< QT, ST >, DerivedQuantity< QT, SU, DQT > >, and quantity::Variable< Quantity< QT, ST >, DerivedQuantity< QT, SU, DQT > >.
virtual bool quantity::Quantities::isDimensionless | ( | void | ) | const [pure virtual] |
return whether the quantity is dimensionless
pure virtual, must be overridden in all descendants of Quantity
Implemented in quantity::Quantity< GenericClass< DIM >, ST >, and quantity::Quantity< QT, ST >.