unit::Prefixable< BT, U > Class Template Reference

template Prefixable; More...

#include <Unit.h>

Inheritance diagram for unit::Prefixable< BT, U >:

unit::Unit< BT > unit::Units unit::Prefixed< Prefixable< BT, U >, UP >

List of all members.

Public Types

typedef
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Yotta >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Zetta >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Exa >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Peta >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Tera >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Giga >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Mega >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Kilo >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Hecto >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Deca >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
No >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Deci >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Centi >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Milli >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Micro >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Nano >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Pico >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Femto >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Atto >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Zepto >,
Loki::Typelist
< Prefixed
< Prefixable< BT, U >,
Yocto >,
Loki::NullType > > > > > > > > > > > > > > > > > > > > > 
Units
 Typelist of all Prefixed derived units;.

Public Member Functions

bool isSI (void) const
 whether the unit is an SI unit;

Static Public Member Functions

static bool IsSI (void)
 whether the unit is an SI unit;

Static Protected Attributes

static const std::string Basename = "mole"
 the name of this unit;
static const std::string Basesymbol = "mol"
 the symbol for this unit;

Static Private Attributes

static const bool SI = true
 whether the unit is an SI unit;


Detailed Description

template<class BT, class U>
class unit::Prefixable< BT, U >

template Prefixable;

a unit with an additional prefix (defined by the SI) which defines the order of magnitude; it is derived from a base unit Unit<BT>; template parameter U is a dummy parameter; the class defines a member Units, which lists all the expanded units which can be derived from Prefixable<BT, U> by attaching a prefix.

Definition at line 320 of file Unit.h.


Member Typedef Documentation

template<class BT, class U>
typedef Loki::Typelist<Prefixed<Prefixable<BT, U>, Yotta>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Zetta>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Exa>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Peta>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Tera>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Giga>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Mega>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Kilo>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Hecto>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Deca>, Loki::Typelist<Prefixed<Prefixable<BT, U>, No>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Deci>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Centi>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Milli>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Micro>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Nano>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Pico>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Femto>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Atto>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Zepto>, Loki::Typelist<Prefixed<Prefixable<BT, U>, Yocto>, Loki::NullType> > > > > > > > > > > > > > > > > > > > > unit::Prefixable< BT, U >::Units

Typelist of all Prefixed derived units;.

Definition at line 352 of file Unit.h.


Member Function Documentation

template<class BT, class U>
static bool unit::Prefixable< BT, U >::IsSI ( void   )  [inline, static]

whether the unit is an SI unit;

for access without having definition of isSI available; common interface for all Units, can not be virtual since it is static member function

Definition at line 359 of file Unit.h.

Referenced by unit::Prefixable< BT, unit::NonPrefixable< Unit, UUnit > >::isSI().

template<class BT, class U>
bool unit::Prefixable< BT, U >::isSI ( void   )  const [inline, virtual]

whether the unit is an SI unit;

dynamic access.

Implements unit::Unit< BT >.

Definition at line 364 of file Unit.h.


Member Data Documentation

template<class BT, class U>
const bool quantity::volume::Litres::SI = true [inline, static, private]

whether the unit is an SI unit;

this static variable must be defined outside of the class

Definition at line 326 of file Unit.h.

Referenced by unit::Prefixable< BT, unit::NonPrefixable< Unit, UUnit > >::IsSI().

template<class BT, class U>
const std::string quantity::volume::Litres::Basename = "mole" [inline, static, protected]

the name of this unit;

Definition at line 371 of file Unit.h.

template<class BT, class U>
const std::string quantity::volume::Litres::Basesymbol = "mol" [inline, static, protected]

the symbol for this unit;

Definition at line 377 of file Unit.h.


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