casacore
Loading...
Searching...
No Matches
TVecLogic.h
Go to the documentation of this file.
1//# TVecLogic.h: Internal functions for table vector logical operations
2//# Copyright (C) 1994,1995,1999
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
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef TABLES_TVECLOGIC_H
27#define TABLES_TVECLOGIC_H
28
29//# Includes
30#include <casacore/casa/aips.h>
31
32namespace casacore { //# NAMESPACE CASACORE - BEGIN
33
34//# Forward Declarations
35template<class T> class TabVecRep;
36
37
38
39// <summary>
40// Comparison between two table vectors
41// </summary>
42
43// <use visibility=local>
44
45// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="">
46// </reviewed>
47
48// <synopsis>
49// Element by element comparisons between two table vectors
50// or between a table vector and a scalar.
51// The result is true only if the comparison is true for every element
52// of the table vectors.
53// At some point operators will be available that return masks where the
54// comparison is true.
55// The left and right operands must be conformant (i.e. have equal length).
56// The functions are the implementation of the wrapper functions
57// defined in TabVecLogic.h.
58// </synopsis>
59
60// <group name=vectorComparison>
61template<class T>
62 Bool tabVecReptvLE (const TabVecRep<T>& left, const TabVecRep<T>& right);
63template<class T>
64 Bool tabVecReptvLT (const TabVecRep<T>& left, const TabVecRep<T>& right);
65template<class T>
66 Bool tabVecReptvGE (const TabVecRep<T>& left, const TabVecRep<T>& right);
67template<class T>
68 Bool tabVecReptvGT (const TabVecRep<T>& left, const TabVecRep<T>& right);
69template<class T>
70 Bool tabVecReptvEQ (const TabVecRep<T>& left, const TabVecRep<T>& right);
71template<class T>
72 Bool tabVecReptvNE (const TabVecRep<T>& left, const TabVecRep<T>& right);
73// </group>
74
75
76// <summary>
77// Comparison between a table vector and a scalar
78// </summary>
79
80// <use visibility=local>
81
82// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="">
83// </reviewed>
84
85// <synopsis>
86// Element by element comparisons between a table vector and a scalar,
87// which behaves as if it were a conformant table vector filled with the
88// scalar value.
89// At some point operators will be available that return masks where the
90// comparison is true.
91// The functions are the implementation of the wrapper functions
92// defined in TabVecLogic.h.
93// </synopsis>
94
95// <group name=scalarComparison>
96template<class T>
97 Bool tabVecRepvalrLE (const TabVecRep<T>& left, const T& right);
98template<class T>
99 Bool tabVecRepvallLE (const T& left, const TabVecRep<T>& right);
100template<class T>
101 Bool tabVecRepvalrLT (const TabVecRep<T>& left, const T& right);
102template<class T>
103 Bool tabVecRepvallLT (const T& left, const TabVecRep<T>& right);
104template<class T>
105 Bool tabVecRepvalrGE (const TabVecRep<T>& left, const T& right);
106template<class T>
107 Bool tabVecRepvallGE (const T& left, const TabVecRep<T>& right);
108template<class T>
109 Bool tabVecRepvalrGT (const TabVecRep<T>& left, const T& right);
110template<class T>
111 Bool tabVecRepvallGT (const T& left, const TabVecRep<T>& right);
112template<class T>
113 Bool tabVecRepvalrEQ (const TabVecRep<T>& left, const T& right);
114template<class T>
115 Bool tabVecRepvallEQ (const T& left, const TabVecRep<T>& right);
116template<class T>
117 Bool tabVecRepvalrNE (const TabVecRep<T>& left, const T& right);
118template<class T>
119 Bool tabVecRepvallNE (const T& left, const TabVecRep<T>& right);
120// </group>
121
122
123
124} //# NAMESPACE CASACORE - END
125
126#ifndef CASACORE_NO_AUTO_TEMPLATES
127#include <casacore/tables/Tables/TVecLogic.tcc>
128#endif //# CASACORE_NO_AUTO_TEMPLATES
129#endif
Templated base class for table vectors.
Definition TVec.h:106
this file contains all the compiler specific defines
Definition mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
Comparison between a table vector and a scalar.
Definition TVecLogic.h:96
Bool tabVecRepvalrLE(const TabVecRep< T > &left, const T &right)
Bool tabVecRepvalrGE(const TabVecRep< T > &left, const T &right)
Bool tabVecRepvalrGT(const TabVecRep< T > &left, const T &right)
Bool tabVecRepvallGT(const T &left, const TabVecRep< T > &right)
Bool tabVecRepvalrNE(const TabVecRep< T > &left, const T &right)
Bool tabVecRepvallNE(const T &left, const TabVecRep< T > &right)
Bool tabVecRepvalrEQ(const TabVecRep< T > &left, const T &right)
Bool tabVecRepvallGE(const T &left, const TabVecRep< T > &right)
Bool tabVecRepvallLE(const T &left, const TabVecRep< T > &right)
Bool tabVecRepvallLT(const T &left, const TabVecRep< T > &right)
Bool tabVecRepvallEQ(const T &left, const TabVecRep< T > &right)
Bool tabVecRepvalrLT(const TabVecRep< T > &left, const T &right)
Bool tabVecReptvNE(const TabVecRep< T > &left, const TabVecRep< T > &right)
Bool tabVecReptvGE(const TabVecRep< T > &left, const TabVecRep< T > &right)
Bool tabVecReptvEQ(const TabVecRep< T > &left, const TabVecRep< T > &right)
Bool tabVecReptvGT(const TabVecRep< T > &left, const TabVecRep< T > &right)
Bool tabVecReptvLE(const TabVecRep< T > &left, const TabVecRep< T > &right)
Bool tabVecReptvLT(const TabVecRep< T > &left, const TabVecRep< T > &right)