28 #ifndef TABLES_EXPRDERNODE_H
29 #define TABLES_EXPRDERNODE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/tables/TaQL/ExprNodeRep.h>
34 #include <casacore/tables/Tables/TableColumn.h>
35 #include <casacore/casa/Arrays/Vector.h>
36 #include <casacore/casa/BasicMath/Random.h>
Multiplicative linear congruential generator.
String: the storage and methods of handling collections of characters.
Abstract base class for a node having 0, 1, or 2 child nodes.
Scalar column in table select expression tree.
Array< Float > getColumnFloat(const Vector< rownr_t > &rownrs)
Array< uShort > getColumnuShort(const Vector< rownr_t > &rownrs)
Array< uChar > getColumnuChar(const Vector< rownr_t > &rownrs)
virtual void getColumnNodes(std::vector< TableExprNodeRep * > &cols)
This node represents a table column.
static Unit getColumnUnit(const TableColumn &)
Get the column unit (can be empty).
Int64 getInt(const TableExprId &id)
Array< uInt > getColumnuInt(const Vector< rownr_t > &rownrs)
virtual void disableApplySelection()
Do not apply the selection.
Array< Int > getColumnInt(const Vector< rownr_t > &rownrs)
Array< String > getColumnString(const Vector< rownr_t > &rownrs)
Array< Double > getColumnDouble(const Vector< rownr_t > &rownrs)
Array< Complex > getColumnComplex(const Vector< rownr_t > &rownrs)
Bool getBool(const TableExprId &id)
Get the data for the given id.
TableExprNodeColumn(const Table &, const String &columnName)
const TableColumn & getColumn() const
Double getDouble(const TableExprId &id)
virtual void applySelection(const Vector< rownr_t > &rownrs)
Re-create the column object for a selection of rows.
Array< Int64 > getColumnInt64(const Vector< rownr_t > &rownrs)
Array< DComplex > getColumnDComplex(const Vector< rownr_t > &rownrs)
Array< Bool > getColumnBool(const Vector< rownr_t > &rownrs)
Get the data for the given rows.
Array< Short > getColumnShort(const Vector< rownr_t > &rownrs)
DComplex getDComplex(const TableExprId &id)
String getString(const TableExprId &id)
Bool getColumnDataType(DataType &) const
Get the data type of this scalar column.
Bool getBool(const TableExprId &id)
Get a scalar value for this node in the given row.
~TableExprNodeConstBool()
TableExprNodeConstBool(const Bool &value)
Constant DComplex in table select expression tree.
TableExprNodeConstDComplex(const DComplex &value)
DComplex getDComplex(const TableExprId &id)
~TableExprNodeConstDComplex()
Constant Date in table select expression tree.
TableExprNodeConstDate(const MVTime &value)
Double getDouble(const TableExprId &id)
MVTime getDate(const TableExprId &id)
~TableExprNodeConstDate()
Constant Double in table select expression tree.
DComplex getDComplex(const TableExprId &id)
~TableExprNodeConstDouble()
Double getDouble(const TableExprId &id)
TableExprNodeConstDouble(const Double &value)
Constant Int64 in table select expression tree.
Double getDouble(const TableExprId &id)
TableExprNodeConstInt(const Int64 &value)
DComplex getDComplex(const TableExprId &id)
Int64 getInt(const TableExprId &id)
Constant Regex or StringDistance in table select expression tree.
~TableExprNodeConstRegex()
TaqlRegex getRegex(const TableExprId &id)
TableExprNodeConstRegex(const TaqlRegex &value)
Constant String in table select expression tree.
~TableExprNodeConstString()
TableExprNodeConstString(const String &value)
String getString(const TableExprId &id)
Random number in table select expression tree.
Double getDouble(const TableExprId &id)
TableExprNodeRandom(const Table &)
Rowid in table select expression tree.
virtual void applySelection(const Vector< rownr_t > &rownrs)
Re-create the column object for a selection of rows.
TableExprNodeRowid(const Table &)
Int64 getInt(const TableExprId &id)
Vector< rownr_t > rownrs_p
Rownumber in table select expression tree.
TableExprNodeRownr(const Table &, uInt origin)
Int64 getInt(const TableExprId &id)
std::complex< Double > DComplex
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.