casacore
LELBinaryEnums.h
Go to the documentation of this file.
1 //# LELBinaryEnums.h: Enums of binary arithmetic operation on arrays
2 //# Copyright (C) 1997
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 //# $Id$
26 
27 #ifndef LATTICES_LELBINARYENUMS_H
28 #define LATTICES_LELBINARYENUMS_H
29 
30 #include <casacore/casa/aips.h>
31 
32 namespace casacore { //# NAMESPACE CASACORE - BEGIN
33 
34 // <summary> Each LEL binary operation is described in this enum </summary>
35 //
36 // <use visibility=local>
37 //
38 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
39 // </reviewed>
40 //
41 // <prerequisite>
42 // <li> <linkto class="Lattice"> Lattice</linkto>
43 // <li> <linkto class="LatticeExpr"> LatticeExpr</linkto>
44 // <li> <linkto class="LatticeExprNode"> LatticeExprNode</linkto>
45 // <li> <linkto class="LELInterface"> LELInterface</linkto>
46 // <li> <linkto class="LELBinary"> LELBinary</linkto>
47 // </prerequisite>
48 //
49 // <etymology>
50 // This enum provides a value for each binary operation accepted
51 // by the Lattice Expression Language classes.
52 // </etymology>
53 //
54 // <synopsis>
55 // Each binary operator accepted by the bridging class LatticeExprNode
56 // and passed on to the LELBinary letter classes is labelled internally
57 // with a value from this enum.
58 // </synopsis>
59 //
60 //
61 // <todo asof="1998/01/21">
62 // </todo>
63 
65 {
66 public:
67  enum Operation{
68 
69 // Addition
70  ADD,
71 
72 // Subtraction
74 
75 // Multiplication
77 
78 // Division
80 
81 // Logical and
82  AND,
83 
84 // Logical or
85  OR,
86 
87 // ==
88  EQ,
89 
90 // > (and reversed <)
91  GT,
92 
93 // >= (and reversed <=)
94  GE,
95 
96 // !=
97  NE,
98 
99 // Total number
100  NOPS
101 
102 };
103 
104 };
105 
106 
107 } //# NAMESPACE CASACORE - END
108 
109 #endif
@ GE
>= (and reversed <=)
@ GT
(and reversed <)
@ MULTIPLY
Multiplication.
this file contains all the compiler specific defines
Definition: mainpage.dox:28