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

quantity::CheckAgainstAllUnits< U, Loki::Typelist< Head, Tail > > Struct Template Reference

check a unit U versus all units in AllUnits More...

#include <Quantity.h>

List of all members.

Public Types

typedef BSUtilities::IF< BSUtilities::SameType<
U, Head >::sameType, U, typename
CheckAgainstAllUnits< U, Tail
>::RET >::RET 
RET


Detailed Description

template<class U, class Head, class Tail>
struct quantity::CheckAgainstAllUnits< U, Loki::Typelist< Head, Tail > >

check a unit U versus all units in AllUnits

specialization for second argument being a Typelist; recursive template; uses Czernecki and Eisenecker's IF template to select a return type RET based on whether U and the Head of the Typelist are the same type; if so, U is returned from IF and assigned to the return type RET; of not, the template is recursively called for U and the Tail of the Typelist, and the result of this evaluation is returned.

Definition at line 245 of file Quantity.h.


Member Typedef Documentation

template<class U, class Head, class Tail>
typedef BSUtilities::IF<BSUtilities::SameType<U, Head>::sameType, U, typename CheckAgainstAllUnits<U, Tail>::RET >::RET quantity::CheckAgainstAllUnits< U, Loki::Typelist< Head, Tail > >::RET
 

Definition at line 249 of file Quantity.h.


The documentation for this struct was generated from the following file:
Generated on Mon Feb 12 18:43:59 2007 for Quantity by doxygen 1.3.6