Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

Quantities::FindBySymbol< GT, UL, DU, ST > Class Template Reference

check units in Typelist UL for symbol unitstring More...

#include <Quantity.h>

List of all members.

Static Public Member Functions

Units::Unit< GT, ST > * result (const std::string &unitstring)
 check and if found, return an object of the desired type.


Detailed Description

template<class GT, class UL, class DU, class ST = double>
class Quantities::FindBySymbol< GT, UL, DU, ST >

check units in Typelist UL for symbol unitstring

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.


The documentation for this class was generated from the following file:
Generated on Sun Jan 15 13:58:00 2006 for Quantity by doxygen 1.3.6