unit::Unit< BT > Class Template Reference

basic template Unit; More...

#include <Unit.h>

Inheritance diagram for unit::Unit< BT >:

unit::Units unit::ComposeBase< BT, Loki::Typelist< ComposeElement< BT, Loki::Typelist< UHead, UTail >, BSUtilities::Rational< N, D > >, ELTail > > unit::NonPrefixable< BT, U > unit::Prefixable< BT, U > unit::Prefixable< BT, unit::NonPrefixable< Unit, UUnit > > unit::Prefixed< Prefixable< BT, U >, UP >

List of all members.

Public Member Functions

virtual std::string name (void) const =0
 return the name of the unit;
virtual std::string symbol (void) const =0
 return the symbol of the unit;
virtual bool isSI (void) const =0
 whether the unit is an SI unit;
virtual ~Unit ()


Detailed Description

template<class BT>
class unit::Unit< BT >

basic template Unit;

Template parameter BT is the unit type, which generates various base units that form a common base class for more specialized derived units.

Definition at line 154 of file Unit.h.


Constructor & Destructor Documentation

template<class BT>
virtual unit::Unit< BT >::~Unit (  )  [inline, virtual]

Definition at line 172 of file Unit.h.


Member Function Documentation

template<class BT>
virtual std::string unit::Unit< BT >::name ( void   )  const [pure virtual]

return the name of the unit;

dynamic access, to be used polymorphically

Implemented in unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >, unit::NonPrefixable< BT, U >, and unit::Prefixed< Prefixable< BT, U >, UP >.

template<class BT>
virtual std::string unit::Unit< BT >::symbol ( void   )  const [pure virtual]

return the symbol of the unit;

dynamic access, to be used polymorphically

Implemented in unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >, unit::NonPrefixable< BT, U >, and unit::Prefixed< Prefixable< BT, U >, UP >.

template<class BT>
virtual bool unit::Unit< BT >::isSI ( void   )  const [pure virtual]

whether the unit is an SI unit;

dynamic access, to be used polymorphically

Implemented in unit::NonPrefixable< GenericUnitBase< DIM >, GenericUnit >, unit::NonPrefixable< BT, U >, unit::Prefixable< BT, U >, and unit::Prefixable< BT, unit::NonPrefixable< Unit, UUnit > >.


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