Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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::NonPrefixable< quantity::GenericClass< DIM >, GenericUnit > unit::Prefixable< BT, U > unit::Prefixed< Prefixable< BT, U >, UP > List of all members.

Public Member Functions

virtual const std::string name (void) const=0
 return the name of the unit;

virtual const std::string symbol (void) const=0
 return the symbol of the unit;

virtual const bool isSI (void) const=0
 whether the unit is an SI 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 forms a common base class for more specialized derived units.

Definition at line 149 of file Unit.h.


Member Function Documentation

template<class BT>
virtual const 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< quantity::GenericClass< DIM >, GenericUnit >, unit::NonPrefixable< BT, U >, and unit::Prefixable< BT, U >.

template<class BT>
virtual const 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< quantity::GenericClass< DIM >, GenericUnit >, unit::NonPrefixable< BT, U >, and unit::Prefixed< Prefixable< BT, U >, UP >.

template<class BT>
virtual const 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< quantity::GenericClass< DIM >, GenericUnit >, unit::NonPrefixable< BT, U >, and unit::Prefixed< Prefixable< BT, U >, UP >.


The documentation for this class was generated from the following file:
Generated on Sun Jan 15 14:05:23 2006 for Quantity by doxygen 1.3.6