casa
$Rev:20696$
|
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: LELBinaryEnums.h 18093 2004-11-30 17:51:10Z ddebonis $ 00026 00027 #ifndef LATTICES_LELBINARYENUMS_H 00028 #define LATTICES_LELBINARYENUMS_H 00029 00030 namespace casa { //# NAMESPACE CASA - BEGIN 00031 00032 // <summary> Each LEL binary operation is described in this enum </summary> 00033 // 00034 // <use visibility=local> 00035 // 00036 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos=""> 00037 // </reviewed> 00038 // 00039 // <prerequisite> 00040 // <li> <linkto class="Lattice"> Lattice</linkto> 00041 // <li> <linkto class="LatticeExpr"> LatticeExpr</linkto> 00042 // <li> <linkto class="LatticeExprNode"> LatticeExprNode</linkto> 00043 // <li> <linkto class="LELInterface"> LELInterface</linkto> 00044 // <li> <linkto class="LELBinary"> LELBinary</linkto> 00045 // </prerequisite> 00046 // 00047 // <etymology> 00048 // This enum provides a value for each binary operation accepted 00049 // by the Lattice Expression Language classes. 00050 // </etymology> 00051 // 00052 // <synopsis> 00053 // Each binary operator accepted by the bridging class LatticeExprNode 00054 // and passed on to the LELBinary letter classes is labelled internally 00055 // with a value from this enum. 00056 // </synopsis> 00057 // 00058 // 00059 // <todo asof="1998/01/21"> 00060 // </todo> 00061 00062 class LELBinaryEnums 00063 { 00064 public: 00065 enum Operation{ 00066 00067 // Addition 00068 ADD, 00069 00070 // Subtraction 00071 SUBTRACT, 00072 00073 // Multiplication 00074 MULTIPLY, 00075 00076 // Division 00077 DIVIDE, 00078 00079 // Logical and 00080 AND, 00081 00082 // Logical or 00083 OR, 00084 00085 // == 00086 EQ, 00087 00088 // > (and reversed <) 00089 GT, 00090 00091 // >= (and reversed <=) 00092 GE, 00093 00094 // != 00095 NE, 00096 00097 // Total number 00098 NOPS 00099 00100 }; 00101 00102 }; 00103 00104 00105 } //# NAMESPACE CASA - END 00106 00107 #endif