quantity::convertValue< M< Quantity< GenericClass< DIM >, ST >, DerivedQuantity< GenericClass< DIM >, SU, DQT > >, SM< Quantity< SQT, SST >, DerivedQuantity< SQT, SSU, SDQT > > > Struct Template Reference

convert a value from any source quantity to a generated target variable object More...

#include <Generic.h>

List of all members.

Static Public Member Functions

static ST exec (const typename BSUtilities::IF< SameDimensioned< M< Quantity< GenericClass< DIM >, ST >, DerivedQuantity< GenericClass< DIM >, SU, DQT > >, SM< Quantity< SQT, SST >, DerivedQuantity< SQT, SSU, SDQT > > >::EQ, SM< Quantity< SQT, SST >, DerivedQuantity< SQT, SSU, SDQT > >, DimensionError< true > >::RET &quantity)


Detailed Description

template<template< typename, typename > class M, typename DIM, typename ST, typename SU, typename DQT, template< typename, typename > class SM, typename SQT, typename SST, typename SSU, typename SDQT>
struct quantity::convertValue< M< Quantity< GenericClass< DIM >, ST >, DerivedQuantity< GenericClass< DIM >, SU, DQT > >, SM< Quantity< SQT, SST >, DerivedQuantity< SQT, SSU, SDQT > > >

convert a value from any source quantity to a generated target variable object

partial specialization of template defined in Quantity.h; checks that the dimensions of the two quantities are the same, if not a DimensionError<true> is emitted, otherwise the correct type of the function argument is generated.

Definition at line 301 of file Generic.h.


Member Function Documentation

template<template< typename, typename > class M, typename DIM, typename ST, typename SU, typename DQT, template< typename, typename > class SM, typename SQT, typename SST, typename SSU, typename SDQT>
static ST quantity::convertValue< M< Quantity< GenericClass< DIM >, ST >, DerivedQuantity< GenericClass< DIM >, SU, DQT > >, SM< Quantity< SQT, SST >, DerivedQuantity< SQT, SSU, SDQT > > >::exec ( const typename BSUtilities::IF< SameDimensioned< M< Quantity< GenericClass< DIM >, ST >, DerivedQuantity< GenericClass< DIM >, SU, DQT > >, SM< Quantity< SQT, SST >, DerivedQuantity< SQT, SSU, SDQT > > >::EQ, SM< Quantity< SQT, SST >, DerivedQuantity< SQT, SSU, SDQT > >, DimensionError< true > >::RET &  quantity  )  [inline, static]

Definition at line 304 of file Generic.h.


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