#include <Quantity.h>
Public Types | |
typedef UL | Units |
the list of Units | |
Public Member Functions | |
static::unit::Unit < UT > * | unit (const std::string &unitstring) |
return a unit which has unitstring as the symbol; | |
Static Public Member Functions | |
static std::vector < std::string > | allsymbols (void) |
return a vector of the strings of all unit symbols | |
Private Types | |
typedef unit::CheckUnits < unit::Unit< UT >, UL >::Check | Check |
check that all units in UL are subclassed from Unit<UT> |
Definition at line 213 of file Quantity.h.
typedef unit::CheckUnits<unit::Unit<UT>, UL>::Check quantity::AllUnitsTemplate< UT, UL >::Check [private] |
check that all units in UL are subclassed from Unit<UT>
Check is a dummy type.
Definition at line 220 of file Quantity.h.
typedef UL quantity::AllUnitsTemplate< UT, UL >::Units |
static ::unit::Unit<UT>* quantity::AllUnitsTemplate< UT, UL >::unit | ( | const std::string & | unitstring | ) | [inline] |
return a unit which has unitstring as the symbol;
uses UnitPointerBySymbol 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, in order to allow the use of its virtual functions polymorphically; however, you can not make decisions based on its type!
Definition at line 235 of file Quantity.h.
static std::vector<std::string> quantity::AllUnitsTemplate< UT, UL >::allsymbols | ( | void | ) | [inline, static] |
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 242 of file Quantity.h.