Main Page | Class Hierarchy | Class List | File List

AmountOfSubstance.h

Go to the documentation of this file.
00001 
00007 /* Copyright (C) 2002 - 2005, Bernd Speiser */
00008 
00009 /* This file is part of Quantities.
00010 
00011 PhysicalQuantities is free software; you can redistribute it and/or
00012 modify it under the terms of the GNU General Public License
00013 as published by the Free Software Foundation; either version 2
00014 of the License, or (at your option) any later version.
00015 
00016 PhysicalQuantities is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 GNU General Public License for more details.
00020   
00021 You should have received a copy of the GNU General Public License
00022 along with this program; if not, write to the Free Software
00023 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00024 02111-1307, USA.
00025 */
00026 
00027 #ifndef _AmountOfSubstance_h
00028 #define _AmountOfSubstance_h
00029 
00030 #include "Quantity/Variable.h"
00031 #include "Quantity/Constant.h"
00032 #include "Quantity/QuantityCluster.h"
00033 
00034 namespace quantity {
00035   namespace amountOfSubstance {
00036 
00037 /* AmountOfSubstance dimension */
00038 typedef BSUtilities::Rational<0> LE;
00039 typedef BSUtilities::Rational<0> M;
00040 typedef BSUtilities::Rational<0> TI;
00041 typedef BSUtilities::Rational<0> E;
00042 typedef BSUtilities::Rational<0> TE;
00043 typedef BSUtilities::Rational<1> A;
00044 typedef BSUtilities::Rational<0> LU;
00045 
00046 typedef dimension::Dimension<LE, M, TI, E, TE, A, LU> Dimension;
00047 
00049 class Unit;
00050 
00051 /* declaration of AmountOfSubstance units */
00052 class MoleUnits;
00053 
00054 /* the mole and prefixed moles */
00055 
00056 typedef unit::Prefixable<Unit, MoleUnits> Moles;
00057 
00058 typedef unit::Prefixed<Moles> Mole;
00059 typedef unit::Prefixed<Moles, unit::Milli> MilliMole;
00060 
00061 typedef Moles::Units Units;
00062 
00063 /* declare some abbreviated AmountOfSubstance  units */
00064 
00065 typedef Mole mol;
00066 typedef MilliMole mmol;
00067 
00068 /* AmountOfSubstance Quantity */
00069 
00070 typedef Quantity<Dimension, Unit, Units, Mole> Quantity;
00071 
00072   }
00073 
00074 typedef Variable<amountOfSubstance::Quantity> AmountOfSubstance;
00075 typedef Constant<amountOfSubstance::Quantity> 
00076                                               AmountOfSubstanceConstant;
00077 
00078 typedef VariableVector<amountOfSubstance::Quantity> 
00079                                                 AmountOfSubstanceVector;
00080 
00081 }
00082 
00083 #endif /* _AmountOfSubstance_h */

Generated on Sun Jan 15 14:05:26 2006 for PhysicalQuantities by doxygen 1.3.6