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

template NonPrefixable; More...

#include <Unit.h>

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

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

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static double Factor (void)
 the 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 std::string Name (void)
 return the name of this unit
static std::string Symbol (void)
 return the symbol for this unit

Static Private Attributes

static const double StandardFactor = 1.0e-2
static const bool SI = false
 report whether the unit is an SI unit.
static const bool Exact = true
 report whether the unit can be converted numerically exact.
static const std::string Namestring = "gal"
 the name of the unit
static const std::string Symbolstring = "Gal"
 the symbol of the unit


Detailed Description

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

template NonPrefixable;

a unit which can not have a prefix; template parameters: UT - the unit type U - the unit it is derived from a base unit Unit<UT>; template parameter U is a dummy parameter distiguishing several differents units derived from Unit<UT>

Definition at line 115 of file Unit.h.


Member Function Documentation

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

the standardization factor

static access; call without reference to an object

Definition at line 144 of file Unit.h.

References unit::NonPrefixable< UT, U >::StandardFactor.

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

whether the unit is an SI unit

static access; call without reference to an object

Definition at line 149 of file Unit.h.

References unit::NonPrefixable< UT, U >::SI.

Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::isSI().

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

whether the unit can be converted numerically exact;

static access; call without reference to an object

Definition at line 154 of file Unit.h.

References unit::NonPrefixable< UT, U >::Exact.

Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::isExact().

template<class UT, class U>
static std::string unit::NonPrefixable< UT, U >::Name ( void   )  [inline, static]

return the name of this unit

Definition at line 159 of file Unit.h.

References unit::NonPrefixable< UT, U >::Namestring.

Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::name().

template<class UT, class U>
static std::string unit::NonPrefixable< UT, U >::Symbol ( void   )  [inline, static]

return the symbol for this unit

Definition at line 164 of file Unit.h.

References unit::NonPrefixable< UT, U >::Symbolstring.

Referenced by unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::symbol().


Member Data Documentation

template<class UT, class U>
const double quantity::empty::Unity::StandardFactor = 1.0e-2 [inline, static, private]

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

Definition at line 122 of file Unit.h.

Referenced by unit::NonPrefixable< UT, U >::Factor(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Factor().

template<class UT, class U>
const bool quantity::empty::Unity::SI = false [inline, static, private]

report whether the unit is an SI unit.

Definition at line 125 of file Unit.h.

Referenced by unit::NonPrefixable< UT, U >::IsSI(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::IsSI().

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

report whether the unit can be converted numerically exact.

Definition at line 128 of file Unit.h.

Referenced by unit::NonPrefixable< UT, U >::IsExact(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::IsExact().

template<class UT, class U>
const std::string quantity::empty::Unity::Namestring = "gal" [inline, static, private]

the name of the unit

must be supplied by definition outside of class.

Definition at line 133 of file Unit.h.

Referenced by unit::NonPrefixable< UT, U >::Name(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Name().

template<class UT, class U>
const std::string quantity::empty::Unity::Symbolstring = "Gal" [inline, static, private]

the symbol of the unit

must be supplied by definition outside of class.

Definition at line 138 of file Unit.h.

Referenced by unit::NonPrefixable< UT, U >::Symbol(), and unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Symbol().


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