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

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

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


Static Public Member Functions

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


Static Protected Attributes

const std::string Basename
 the name of this unit;

const std::string Basesymbol
 the symbol for this unit;


Static Private Attributes

const bool SI
 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 312 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 344 of file Unit.h.


Member Function Documentation

template<class BT, class U>
const 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 356 of file Unit.h.

References unit::Prefixable< BT, U >::IsSI().

template<class BT, class U>
const 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 351 of file Unit.h.

Referenced by unit::Prefixable< BT, U >::isSI().


Member Data Documentation

template<class BT, class U>
const std::string unit::Prefixable< BT, U >::Basename [static, protected]
 

the name of this unit;

Definition at line 363 of file Unit.h.

template<class BT, class U>
const std::string unit::Prefixable< BT, U >::Basesymbol [static, protected]
 

the symbol for this unit;

Definition at line 369 of file Unit.h.

template<class BT, class U>
const bool unit::Prefixable< BT, U >::SI [static, private]
 

whether the unit is an SI unit;

this static variable must be defined outside of the class

Definition at line 318 of file Unit.h.


The documentation for this class was generated from the following file:
Generated on Sun Jan 15 14:05:23 2006 for Quantity by doxygen 1.3.6