unit::Composed< ComposeBase< BT, CEL >, UL > Class Template Reference

A unit which is composed of other units. More...

#include <Unit.h>

List of all members.

Public Member Functions

bool isSI (void) const
 whether the unit is an SI unit;
std::string name (void) const
 return the name of this unit.
std::string symbol (void) const
 return the symbol of this unit.

Static Public Member Functions

static bool IsSI (void)
 report whether the unit is an SI unit.
static const std::string Name (void)
 the name of this unit.
static const std::string Symbol (void)
 the symbol of this unit;

Private Types

typedef Composed
< ComposeBase< BT,
CEL >, UL > 
Unit
typedef ComposeBase
< BT, CEL >
::Powers::Powers 
Powers


Detailed Description

template<class BT, class CEL, class UL>
class unit::Composed< ComposeBase< BT, CEL >, UL >

A unit which is composed of other units.

specialization for first argument being the base compound unit; the units in list UL must be compatible with to the units present in the unit lists of the corresponding CEL elements; UL must be a Loki::Typelist of Unit types; template parameter BT is defined as for Unit; Composed is derived from a base class ComposeBase, which ties together several Composed units for the same combination of T and CEL; composition may be from any number of NonPrefixable, Prefixed or Composed units.

Definition at line 617 of file Unit.h.


Member Typedef Documentation

template<class BT, class CEL, class UL>
typedef Composed<ComposeBase<BT, CEL>, UL> unit::Composed< ComposeBase< BT, CEL >, UL >::Unit [private]

Definition at line 620 of file Unit.h.

template<class BT, class CEL, class UL>
typedef ComposeBase<BT, CEL>::Powers::Powers unit::Composed< ComposeBase< BT, CEL >, UL >::Powers [private]

Definition at line 621 of file Unit.h.


Member Function Documentation

template<class BT, class CEL, class UL>
static bool unit::Composed< ComposeBase< BT, CEL >, UL >::IsSI ( void   )  [inline, static]

report whether the unit is an SI unit.

Definition at line 627 of file Unit.h.

template<class BT, class CEL, class UL>
bool unit::Composed< ComposeBase< BT, CEL >, UL >::isSI ( void   )  const [inline]

whether the unit is an SI unit;

dynamic access.

Definition at line 632 of file Unit.h.

template<class BT, class CEL, class UL>
static const std::string unit::Composed< ComposeBase< BT, CEL >, UL >::Name ( void   )  [inline, static]

the name of this unit.

Definition at line 641 of file Unit.h.

template<class BT, class CEL, class UL>
std::string unit::Composed< ComposeBase< BT, CEL >, UL >::name ( void   )  const [inline]

return the name of this unit.

dynamic access, to be used polymorphically if exact type is not known at compile time

Definition at line 648 of file Unit.h.

template<class BT, class CEL, class UL>
static const std::string unit::Composed< ComposeBase< BT, CEL >, UL >::Symbol ( void   )  [inline, static]

the symbol of this unit;

Definition at line 657 of file Unit.h.

template<class BT, class CEL, class UL>
std::string unit::Composed< ComposeBase< BT, CEL >, UL >::symbol ( void   )  const [inline]

return the symbol of this unit.

dynamic access, to be used polymorphically if exact type is not known at compile time

Definition at line 664 of file Unit.h.


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