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

template NonPrefixable; More...

#include <Unit.h>

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

unit::Unit< BT > unit::Units

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)
 whether the unit is an SI unit;
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 bool SI = false
 report whether the unit is an SI unit.
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 BT, class U>
class unit::NonPrefixable< BT, U >

template NonPrefixable;

a unit which can not have a prefix; it is derived from a base unit Unit<BT>; template parameter U is a dummy parameter distiguishing several differents units derived from Unit<BT>

Definition at line 188 of file Unit.h.


Member Function Documentation

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

whether the unit is an SI unit;

for static 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 210 of file Unit.h.

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

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

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

whether the unit is an SI unit;

dynamic access.

Implements unit::Unit< BT >.

Definition at line 215 of file Unit.h.

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

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

return the name of this unit.

Definition at line 224 of file Unit.h.

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

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

template<class BT, class U>
std::string unit::NonPrefixable< BT, U >::name ( void   )  const [inline, virtual]

return the name of this unit.

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

Implements unit::Unit< BT >.

Definition at line 230 of file Unit.h.

References unit::NonPrefixable< BT, U >::Name().

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

return the symbol for this unit;

Definition at line 239 of file Unit.h.

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

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

template<class BT, class U>
std::string unit::NonPrefixable< BT, U >::symbol ( void   )  const [inline, virtual]

return the symbol of this unit.

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

Implements unit::Unit< BT >.

Definition at line 245 of file Unit.h.

References unit::NonPrefixable< BT, U >::Symbol().


Member Data Documentation

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

report whether the unit is an SI unit.

Definition at line 192 of file Unit.h.

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

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

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

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

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


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