unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit > Class Template Reference

a unit to be used with Generic quantities More...

#include <Generic.h>

Inheritance diagram for unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >:

unit::Unit< GenericUnitBase< DIM > > 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 the unit;
std::string symbol (void) const
 return the symbol of the unit;

Static Public Member Functions

static bool IsSI (void)
static std::string Name (void)
static std::string Symbol (void)

Static Public Attributes

static const std::string Namestring = ""
static const std::string Symbolstring = "(unknown unit)"

Static Private Attributes

static const bool SI = false


Detailed Description

template<typename DIM>
class unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >

a unit to be used with Generic quantities

this defines a NonPrefixable unit, which is linked to other Generic quantity objects through DIM; in order to be able to have this parametrized by DIM, this is a specialization of the NonPrefixable template from Units; this must be in the same namespace as the original NonPrefixable declaration.

Definition at line 79 of file Generic.h.


Member Function Documentation

template<typename DIM>
static bool unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::IsSI ( void   )  [inline, static]

Definition at line 86 of file Generic.h.

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

template<typename DIM>
bool unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::isSI ( void   )  const [inline, virtual]

whether the unit is an SI unit;

dynamic access, to be used polymorphically

Implements unit::Unit< GenericUnitBase< DIM > >.

Definition at line 88 of file Generic.h.

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

template<typename DIM>
static std::string unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Name ( void   )  [inline, static]

Definition at line 92 of file Generic.h.

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

template<typename DIM>
std::string unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::name ( void   )  const [inline, virtual]

return the name of the unit;

dynamic access, to be used polymorphically

Implements unit::Unit< GenericUnitBase< DIM > >.

Definition at line 94 of file Generic.h.

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

template<typename DIM>
static std::string unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Symbol ( void   )  [inline, static]

Definition at line 98 of file Generic.h.

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

template<typename DIM>
std::string unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::symbol ( void   )  const [inline, virtual]

return the symbol of the unit;

dynamic access, to be used polymorphically

Implements unit::Unit< GenericUnitBase< DIM > >.

Definition at line 100 of file Generic.h.

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


Member Data Documentation

template<typename DIM>
const bool unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::SI = false [inline, static, private]

Definition at line 83 of file Generic.h.

template<typename DIM>
const std::string unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Namestring = "" [inline, static]

Definition at line 90 of file Generic.h.

template<typename DIM>
const std::string unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >::Symbolstring = "(unknown unit)" [inline, static]

Definition at line 96 of file Generic.h.


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