casacore
Loading...
Searching...
No Matches
lattices
LEL
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;
11
// without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See
12
// the GNU Library General Public # 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: casa-feedback@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
#ifndef LATTICES_LELBINARYENUMS_H
26
#define LATTICES_LELBINARYENUMS_H
27
28
#include <casacore/casa/aips.h>
29
30
namespace
casacore
{
// # NAMESPACE CASACORE - BEGIN
31
32
// <summary> Each LEL binary operation is described in this enum </summary>
33
//
34
// <use visibility=local>
35
//
36
// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
37
// </reviewed>
38
//
39
// <prerequisite>
40
// <li> <linkto class="Lattice"> Lattice</linkto>
41
// <li> <linkto class="LatticeExpr"> LatticeExpr</linkto>
42
// <li> <linkto class="LatticeExprNode"> LatticeExprNode</linkto>
43
// <li> <linkto class="LELInterface"> LELInterface</linkto>
44
// <li> <linkto class="LELBinary"> LELBinary</linkto>
45
// </prerequisite>
46
//
47
// <etymology>
48
// This enum provides a value for each binary operation accepted
49
// by the Lattice Expression Language classes.
50
// </etymology>
51
//
52
// <synopsis>
53
// Each binary operator accepted by the bridging class LatticeExprNode
54
// and passed on to the LELBinary letter classes is labelled internally
55
// with a value from this enum.
56
// </synopsis>
57
//
58
//
59
// <todo asof="1998/01/21">
60
// </todo>
61
62
class
LELBinaryEnums
{
63
public
:
64
enum
Operation
{
65
66
// Addition
67
ADD
,
68
69
// Subtraction
70
SUBTRACT
,
71
72
// Multiplication
73
MULTIPLY
,
74
75
// Division
76
DIVIDE
,
77
78
// Logical and
79
AND
,
80
81
// Logical or
82
OR
,
83
84
// ==
85
EQ
,
86
87
// > (and reversed <)
88
GT
,
89
90
// >= (and reversed <=)
91
GE
,
92
93
// !=
94
NE
,
95
96
// Total number
97
NOPS
98
99
};
100
};
101
102
}
// namespace casacore
103
104
#endif
casacore::LELBinaryEnums
Definition
LELBinaryEnums.h:62
casacore::LELBinaryEnums::Operation
Operation
Definition
LELBinaryEnums.h:64
casacore::LELBinaryEnums::AND
@ AND
Logical and.
Definition
LELBinaryEnums.h:79
casacore::LELBinaryEnums::GE
@ GE
>= (and reversed <=)
Definition
LELBinaryEnums.h:91
casacore::LELBinaryEnums::EQ
@ EQ
==
Definition
LELBinaryEnums.h:85
casacore::LELBinaryEnums::SUBTRACT
@ SUBTRACT
Subtraction.
Definition
LELBinaryEnums.h:70
casacore::LELBinaryEnums::OR
@ OR
Logical or.
Definition
LELBinaryEnums.h:82
casacore::LELBinaryEnums::GT
@ GT
Definition
LELBinaryEnums.h:88
casacore::LELBinaryEnums::NE
@ NE
!=
Definition
LELBinaryEnums.h:94
casacore::LELBinaryEnums::ADD
@ ADD
Addition.
Definition
LELBinaryEnums.h:67
casacore::LELBinaryEnums::MULTIPLY
@ MULTIPLY
Multiplication.
Definition
LELBinaryEnums.h:73
casacore::LELBinaryEnums::DIVIDE
@ DIVIDE
Division.
Definition
LELBinaryEnums.h:76
casacore::LELBinaryEnums::NOPS
@ NOPS
Total number.
Definition
LELBinaryEnums.h:97
casacore
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition
mainpage.dox:28
Generated by
1.15.0