#include <Quantity.h>
Public Types | |
typedef UL | Units |
the list of Units | |
Public Member Functions | |
static::Units::Unit< GT, ST > * | unit (const std::string &unitstring) |
return a unit which has unitstring as the symbol; | |
Static Public Member Functions | |
std::vector< std::string > | allsymbols (void) |
return a vector of the strings of all unit symbols | |
Private Types | |
typedef Units::CheckUnits< Units::Unit< GT, ST >, UL >::Checked | Checked |
check that all units in UL are subclassed from Unit<GT, ST> |
Definition at line 145 of file Quantity.h.
|
check that all units in UL are subclassed from Unit<GT, ST> Checked is a dummy type. Definition at line 153 of file Quantity.h. |
|
return a vector of the strings of all unit symbols uses ListUnitSymbols to extract all symbol strings from the typelist UL as a vector of std::strings Definition at line 173 of file Quantity.h. |
|
return a unit which has unitstring as the symbol; uses FindBySymbol to scan the Typelist UL and returns the object created by this process; the object returned must be delete'd by the calling program if no longer needed; important: the returned object is the base unit class, while its virtual functions can be used, you can not make decisions based on its type! Definition at line 166 of file Quantity.h. |