LELBinaryEnums.h

Go to the documentation of this file.
00001 //# LELBinaryEnums.h: Enums of binary arithmetic operation on arrays 
00002 //# Copyright (C) 1997
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012 //# License for more details.
00013 //#
00014 //# You should have received a copy of the GNU Library General Public License
00015 //# along with this library; if not, write to the Free Software Foundation,
00016 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00017 //#
00018 //# Correspondence concerning AIPS++ should be addressed as follows:
00019 //#        Internet email: aips2-request@nrao.edu.
00020 //#        Postal address: AIPS++ Project Office
00021 //#                        National Radio Astronomy Observatory
00022 //#                        520 Edgemont Road
00023 //#                        Charlottesville, VA 22903-2475 USA
00024 //#
00025 //# $Id$
00026 
00027 #ifndef LATTICES_LELBINARYENUMS_H
00028 #define LATTICES_LELBINARYENUMS_H
00029 
00030 #include <casacore/casa/aips.h>
00031 
00032 namespace casacore { //# NAMESPACE CASACORE - BEGIN
00033 
00034 // <summary> Each LEL binary operation is described in this enum  </summary>
00035 //
00036 // <use visibility=local>
00037 //
00038 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00039 // </reviewed>
00040 //
00041 // <prerequisite>
00042 //   <li> <linkto class="Lattice"> Lattice</linkto>
00043 //   <li> <linkto class="LatticeExpr"> LatticeExpr</linkto>
00044 //   <li> <linkto class="LatticeExprNode"> LatticeExprNode</linkto>
00045 //   <li> <linkto class="LELInterface"> LELInterface</linkto>
00046 //   <li> <linkto class="LELBinary"> LELBinary</linkto>
00047 // </prerequisite>
00048 //
00049 // <etymology>
00050 //  This enum provides a value for each binary operation accepted
00051 //  by the Lattice Expression Language classes.
00052 // </etymology>
00053 //
00054 // <synopsis>
00055 //  Each binary operator accepted by the bridging class LatticeExprNode
00056 //  and passed  on to the LELBinary letter classes is labelled internally 
00057 //  with a value from this enum.  
00058 // </synopsis> 
00059 //
00060 //
00061 // <todo asof="1998/01/21">
00062 // </todo>
00063 
00064 class LELBinaryEnums 
00065 {
00066 public:
00067    enum Operation{
00068 
00069 // Addition
00070    ADD, 
00071 
00072 // Subtraction
00073    SUBTRACT, 
00074 
00075 // Multiplication
00076    MULTIPLY, 
00077 
00078 // Division
00079    DIVIDE,
00080 
00081 // Logical and
00082    AND,
00083 
00084 // Logical or
00085    OR,
00086 
00087 // ==
00088    EQ,
00089 
00090 // > (and reversed <)
00091    GT,
00092 
00093 // >= (and reversed <=)
00094    GE,
00095 
00096 // !=
00097    NE,
00098 
00099 // Total number
00100    NOPS
00101 
00102 };
00103 
00104 };
00105 
00106 
00107 } //# NAMESPACE CASACORE - END
00108 
00109 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1