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

Empty.h

Go to the documentation of this file.
00001 
00004 /* Copyright (C) 2006, Bernd Speiser */
00005 
00006 /* This file is part of GeneralQuantities.
00007 
00008 GeneralQuantities is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 GeneralQuantities is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 GNU General Public License for more details.
00017   
00018 You should have received a copy of the GNU General Public License
00019 along with this program; if not, write to the Free Software
00020 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00021 02111-1307, USA.
00022 */
00023 
00024 #ifndef _Empty_h
00025 #define _Empty_h
00026 
00027 #include "Quantity/Variable.h"
00028 #include "Quantity/Constant.h"
00029 #include "Quantity/QuantityCluster.h"
00030 
00031 namespace quantity {
00033   namespace empty {
00034 
00035 /* Empty dimension */
00036 typedef BSUtilities::Rational<0> LE;
00037 typedef BSUtilities::Rational<0> M;
00038 typedef BSUtilities::Rational<0> TI;
00039 typedef BSUtilities::Rational<0> E;
00040 typedef BSUtilities::Rational<0> TE;
00041 typedef BSUtilities::Rational<0> A;
00042 typedef BSUtilities::Rational<0> LU;
00043 
00044 typedef dimension::Dimension<LE, M, TI, E, TE, A, LU> Dimension;
00045 
00047 class Unit;
00048 
00049 /* declaration of Empty units */
00050 class EmptyUnit;
00051 
00052 /* the empty unity unit */
00053 
00054 typedef unit::NonPrefixable<Unit, EmptyUnit> Unity;
00055 
00056 typedef LOKI_TYPELIST_1(Unity) Units;
00057 
00058 /* Empty quantity */
00059 
00060 typedef quantity::Quantity<Dimension, Unit, Units, Unity> Quantity;
00061 
00062 }
00063 
00065 typedef Variable<empty::Quantity> Empty;
00066 
00068 typedef Constant<empty::Quantity> EmptyConstant;
00069 
00071 typedef VariableVector<empty::Quantity> EmptyVector;
00072 
00073   }
00074 
00075 #endif /* _Empty_h */

Generated on Sun Jan 15 14:05:27 2006 for GeneralQuantities by doxygen 1.3.6