Main Page   Class Hierarchy   Compound List   Compound Members  

SCOREC_UnitSystem::Unit Class Reference

#include <Unit.h>

List of all members.

Public Methods

 Unit ()
 Constructor. Create a Unit without unit, i.e. all exponents are 0.

 Unit (int meter, int kilogram, int second, int ampere, int kelvin, int mole, int candela)
virtual ~Unit ()
int getMeterExponent () const
int getKilogramExponent () const
int getSecondExponent () const
int getAmpereExponent () const
int getKelvinExponent () const
int getMoleExponent () const
int getCandelaExponent () const
void DumpDiagnostics () const
 DumpDiagnostics() dumps the object's state to standard output.

Unit& operator *= (const SIBaseUnit &)


Detailed Description

class to represent the International System of Units (SI) The SI is founded on seven SI base units for seven base quantities assumed to be mutually independent: Base quantity SI base unit Name Symbol length meter m mass kilogram kg time second s electric current ampere A thermodynamic temperature kelvin K amount of substance mole mol luminous intensity candela cd The class allows to represent any unit by composing it from the seven base units through specification of the exponents. E.g. 1Newton = 1kg*m/sec^2 can be created as follows: Unit(1,1,-2,0,0,0,0); see http://physics.nist.gov/cuu/Units for more information on units.


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