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

a unit with an additional prefix More...

#include <Unit.h>

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

Inheritance graph
[legend]
Collaboration diagram for unit::Prefixable< UT, U >:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static double BaseFactor (void)
 the basic standardization factor
static bool IsSI (void)
 whether the unit is an SI unit;
static bool IsExact (void)
 whether the unit can be converted numerically exact;

Static Protected Attributes

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

Static Private Attributes

static const double StandardFactor = 1.0
static const bool SI = true
 whether the unit is an SI unit;
static const bool Exact = true
 whether the unit can be converted numerically exact;


Detailed Description

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

a unit with an additional prefix

template parameters: UT - the unit type U - the unit a possible prefix (defined by the SI) defines the order of magnitude; the unit is derived from a base unit Unit<UT>; template parameter U is a dummy parameter;

Definition at line 182 of file Unit.h.


Member Function Documentation

template<class UT, class U>
static double unit::Prefixable< UT, U >::BaseFactor ( void   )  [inline, static]

the basic standardization factor

prefix not considered

Definition at line 205 of file Unit.h.

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

whether the unit is an SI unit;

Definition at line 210 of file Unit.h.

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

whether the unit can be converted numerically exact;

Definition at line 215 of file Unit.h.


Member Data Documentation

template<class UT, class U>
const double quantity::volume::Litres::StandardFactor = 1.0 [inline, static, private]

the standard ratio is stored as a double; for use with other types T it must be converted; must be defined outside of the class.

Definition at line 189 of file Unit.h.

Referenced by unit::Prefixable< UT, unit::NonPrefixable< Unit, UUnit > >::BaseFactor().

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

whether the unit is an SI unit;

must be defined outside of the class

Definition at line 194 of file Unit.h.

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

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

whether the unit can be converted numerically exact;

must be defined outside of the class

Definition at line 199 of file Unit.h.

Referenced by unit::Prefixable< UT, unit::NonPrefixable< Unit, UUnit > >::IsExact().

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

the base name of this unit;

Definition at line 221 of file Unit.h.

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

the base symbol for this unit;

Definition at line 226 of file Unit.h.


The documentation for this class was generated from the following files:

Generated on Wed Apr 11 18:07:13 2012 for Quantities by  doxygen 1.5.6