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

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


Detailed Description

template<typename 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 142 of file Quantity.h.


Member Function Documentation

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

Definition at line 145 of file Quantity.h.


The documentation for this class was generated from the following file:
Generated on Mon Jul 27 15:55:47 2009 for Quantities by  doxygen 1.5.3