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

quantity::UnitIndexBySymbol< UL > Class Template Reference

check units in Typelist UL for symbol, return an index into UL More...

#include <Quantity.h>

List of all members.

Static Public Member Functions

const int index (const std::string &symbol)


Detailed Description

template<class UL>
class quantity::UnitIndexBySymbol< UL >

check units in Typelist UL for symbol, return an index into UL

member function result is a recursive template; checks the Head of UL; if unitstring is found as the symbol, 0 is returned; if the Head of UL does not correspond to symbol, the function is applied to the Tail of UL; on return add 1 to the return value; use preferably from inside Quantity, use from user code is not recommended; recursion prohibits to make result private.

Definition at line 107 of file Quantity.h.


Member Function Documentation

template<class UL>
const int quantity::UnitIndexBySymbol< UL >::index const std::string &  symbol  )  [inline, static]
 

Definition at line 110 of file Quantity.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 18:48:41 2007 for Quantity by doxygen 1.3.6