#include <Quantity.h>
Static Public Member Functions | |
Units::Unit< GT, ST > * | result (const std::string &unitstring) |
check and if found, return an object of the desired type. |
member function result is a recursive template; checks the Head of UL; if unitstring is found as the symbol, an object of the corresponding type is generated with new, and returned; the object returned must be delete'd by the calling program if no longer needed; if the symbol is not unitstring, the function is applied to the Tail of UL; use preferably from inside Quantity, use from user code is not recommended; recursion prohibits to make result private.
Definition at line 71 of file Quantity.h.