#include <Quantity.h>
Static Public Member Functions | |
unit::Unit< UT > * | result (const std::string &symbol) |
check and if found, return pointer to new object |
member function result is a recursive template; checks the Head of UL; if symbol is found as the symbol string, an object of the corresponding type is generated with new, and returned; the object returned must be deleted by the calling program if no longer needed; if the symbol is not found, 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 67 of file Quantity.h.
|
check and if found, return pointer to new object
Definition at line 71 of file Quantity.h. |