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

quantity::UnitPointerBySymbol< UT, UL > Class Template Reference

check units in Typelist UL for symbol More...

#include <Quantity.h>

List of all members.

Static Public Member Functions

unit::Unit< UT > * result (const std::string &symbol)
 check and if found, return pointer to new object


Detailed Description

template<class UT, class UL>
class quantity::UnitPointerBySymbol< UT, UL >

check units in Typelist UL for symbol

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 61 of file Quantity.h.


Member Function Documentation

template<class UT, class UL>
unit::Unit<UT>* quantity::UnitPointerBySymbol< UT, UL >::result const std::string &  symbol  )  [inline, static]
 

check and if found, return pointer to new object

Definition at line 65 of file Quantity.h.


The documentation for this class was generated from the following file:
Generated on Sun Jan 15 14:05:22 2006 for Quantity by doxygen 1.3.6