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

Quantities::SameDimensioned< Q1< Quantity< GT1, Loki::Typelist< Head1, Tail1 >, DU1, ST1 >, U1 >, Q2< Quantity< GT2, Loki::Typelist< Head2, Tail2 >, DU2, ST2 >, U2 > > Struct Template Reference

test whether two quantities share a common dimension: More...

#include <Quantity.h>

List of all members.

Public Types

enum  { RET = Dimensions::Equal<Dimensions::Dimension<GT1>, RET = Dimensions::Equal<Dimensions::Dimension<GT1> }


Detailed Description

template<template< class, class > class Q1, class GT1, class Head1, class Tail1, class DU1, class U1, class ST1, template< class, class > class Q2, class GT2, class Head2, class Tail2, class DU2, class U2, class ST2>
struct Quantities::SameDimensioned< Q1< Quantity< GT1, Loki::Typelist< Head1, Tail1 >, DU1, ST1 >, U1 >, Q2< Quantity< GT2, Loki::Typelist< Head2, Tail2 >, DU2, ST2 >, U2 > >

test whether two quantities share a common dimension:

specialization for a pair or combination of e.g. Variables, Constants or UniqueConstants; in the latter case, do not use the SingletonHolder!! each parameter of the primary template must now correspond to a type which is a template with two parameters, the first of which must be a Quantity<>; for the final evaluation, only the types GT1 and GT2 of the Quantities are needed, in order to define the respective Dimension; the two Dimensions generated thus are then compared with Equal.

Definition at line 1156 of file Quantity.h.


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