Main Page   Class Hierarchy   Compound List   Compound Members  

SCOREC_UnitSystem::_g Struct Template Reference

class to represent SI base units with prefix: meter. Needs to be templated over the prefix. The function operator() can be called to return a pair of Unit and a multiplicator (to convert to the SI base unit without kilogram). This class was designed to work with the Unit class. Exception: The gram is not the official SI unit for mass, that would be kilogram. However, kilogram can't be prefixed with other prefix symbols, so we have to make use of it for those purposes. More...

#include <Unit.h>

Inheritance diagram for SCOREC_UnitSystem::_g::

SCOREC_UnitSystem::SIBaseUnit List of all members.

Public Methods

 _g (int e)
std::pair<Unit,double> operator() () const
 An additional factor 1.e-3 comes into the game since gram itself is not a SI Base Unit and needs to be converted to kilogram.


Detailed Description

template<typename T> struct SCOREC_UnitSystem::_g

class to represent SI base units with prefix: meter. Needs to be templated over the prefix. The function operator() can be called to return a pair of Unit and a multiplicator (to convert to the SI base unit without kilogram). This class was designed to work with the Unit class. Exception: The gram is not the official SI unit for mass, that would be kilogram. However, kilogram can't be prefixed with other prefix symbols, so we have to make use of it for those purposes.


The documentation for this struct was generated from the following file:
Generated at Mon Jul 23 09:36:16 2001 for SCOREC_UnitSystem by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001