casa
$Rev:20696$
|
Base class for arrays in table select expression. More...
#include <ExprNodeArray.h>
Public Member Functions | |
TableExprNodeArray (NodeDataType, OperType) | |
Create the object. | |
TableExprNodeArray (const TableExprNodeRep &node, NodeDataType, OperType) | |
TableExprNodeArray (NodeDataType, OperType, const IPosition &shape) | |
~TableExprNodeArray () | |
virtual const IPosition & | getShape (const TableExprId &id) |
Get the shape of the array in the given row. | |
virtual Array< DComplex > | getArrayDComplex (const TableExprId &id) |
The default implementation of getArrayDComplex does getArrayDouble and converts the result. | |
virtual Bool | hasBool (const TableExprId &id, Bool value) |
Does a value occur in the set? | |
virtual Bool | hasInt (const TableExprId &id, Int64 value) |
virtual Bool | hasDouble (const TableExprId &id, Double value) |
virtual Bool | hasDComplex (const TableExprId &id, const DComplex &value) |
virtual Bool | hasString (const TableExprId &id, const String &value) |
virtual Bool | hasDate (const TableExprId &id, const MVTime &value) |
virtual Array< Bool > | hasArrayBool (const TableExprId &id, const Array< Bool > &value) |
virtual Array< Bool > | hasArrayInt (const TableExprId &id, const Array< Int64 > &value) |
virtual Array< Bool > | hasArrayDouble (const TableExprId &id, const Array< Double > &value) |
virtual Array< Bool > | hasArrayDComplex (const TableExprId &id, const Array< DComplex > &value) |
virtual Array< Bool > | hasArrayString (const TableExprId &id, const Array< String > &value) |
virtual Array< Bool > | hasArrayDate (const TableExprId &id, const Array< MVTime > &value) |
virtual Bool | getElemBool (const TableExprId &id, const Slicer &index) |
Get a single element from the array in the given row. | |
virtual Int64 | getElemInt (const TableExprId &id, const Slicer &index) |
virtual Double | getElemDouble (const TableExprId &id, const Slicer &index) |
virtual DComplex | getElemDComplex (const TableExprId &id, const Slicer &index) |
virtual String | getElemString (const TableExprId &id, const Slicer &index) |
virtual MVTime | getElemDate (const TableExprId &id, const Slicer &index) |
virtual Array< Bool > | getSliceBool (const TableExprId &id, const Slicer &) |
Get a slice of the array in the given row. | |
virtual Array< Int64 > | getSliceInt (const TableExprId &id, const Slicer &) |
virtual Array< Double > | getSliceDouble (const TableExprId &id, const Slicer &) |
virtual Array< DComplex > | getSliceDComplex (const TableExprId &id, const Slicer &) |
virtual Array< String > | getSliceString (const TableExprId &id, const Slicer &) |
virtual Array< MVTime > | getSliceDate (const TableExprId &id, const Slicer &) |
virtual Array< Bool > | getElemColumnBool (const Vector< uInt > &rownrs, const Slicer &) |
Get a single element for the entire column (used by sort). | |
virtual Array< uChar > | getElemColumnuChar (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< Short > | getElemColumnShort (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< uShort > | getElemColumnuShort (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< Int > | getElemColumnInt (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< uInt > | getElemColumnuInt (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< Float > | getElemColumnFloat (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< Double > | getElemColumnDouble (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< Complex > | getElemColumnComplex (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< DComplex > | getElemColumnDComplex (const Vector< uInt > &rownrs, const Slicer &) |
virtual Array< String > | getElemColumnString (const Vector< uInt > &rownrs, const Slicer &) |
Static Public Member Functions | |
static Array< Int64 > | makeArray (const IPosition &shape, Int64 value) |
Make an array with the given shape and fill it with the value. | |
static Array< Double > | makeArray (const IPosition &shape, Double value) |
static Array< DComplex > | makeArray (const IPosition &shape, const DComplex &value) |
Protected Attributes | |
IPosition | varShape_p |
Base class for arrays in table select expression.
Internal
This class is the base class to represent an array. The actual storing of the array column is done by its derivations.
Definition at line 65 of file ExprNodeArray.h.
Create the object.
casa::TableExprNodeArray::TableExprNodeArray | ( | const TableExprNodeRep & | node, |
NodeDataType | , | ||
OperType | |||
) |
casa::TableExprNodeArray::TableExprNodeArray | ( | NodeDataType | , |
OperType | , | ||
const IPosition & | shape | ||
) |
virtual Array<DComplex> casa::TableExprNodeArray::getArrayDComplex | ( | const TableExprId & | id | ) | [virtual] |
The default implementation of getArrayDComplex does getArrayDouble and converts the result.
Reimplemented from casa::TableExprNodeRep.
Reimplemented in casa::TableExprNodeArrayMIN, casa::TableExprNodeArrayPart, casa::TableExprNodeArrayDivideDComplex, casa::TableExprNodeArrayColumnDComplex, casa::TableExprNodeArrayColumnComplex, casa::TableExprNodeArrayTimesDComplex, casa::TableExprNodeArrayMinusDComplex, casa::TableExprNodeArrayConstDComplex, casa::TableExprNodeArrayPlusDComplex, casa::TableExprNodeArrayConstDouble, casa::TableExprNodeRecordFieldArray, casa::TableExprNodeArrayUnit, casa::TableExprNodeArrayConstInt, casa::TableExprUDFNodeArray, and casa::TableExprFuncNodeArray.
virtual Bool casa::TableExprNodeArray::getElemBool | ( | const TableExprId & | id, |
const Slicer & | index | ||
) | [virtual] |
Get a single element from the array in the given row.
Reimplemented in casa::TableExprNodeArrayColumnBool.
virtual Array<Bool> casa::TableExprNodeArray::getElemColumnBool | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Get a single element for the entire column (used by sort).
Reimplemented in casa::TableExprNodeArrayColumnBool.
virtual Array<Complex> casa::TableExprNodeArray::getElemColumnComplex | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnComplex.
virtual Array<DComplex> casa::TableExprNodeArray::getElemColumnDComplex | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnDComplex.
virtual Array<Double> casa::TableExprNodeArray::getElemColumnDouble | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnDouble.
virtual Array<Float> casa::TableExprNodeArray::getElemColumnFloat | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnFloat.
virtual Array<Int> casa::TableExprNodeArray::getElemColumnInt | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnInt.
virtual Array<Short> casa::TableExprNodeArray::getElemColumnShort | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnShort.
virtual Array<String> casa::TableExprNodeArray::getElemColumnString | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnString.
virtual Array<uChar> casa::TableExprNodeArray::getElemColumnuChar | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnuChar.
virtual Array<uInt> casa::TableExprNodeArray::getElemColumnuInt | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnuInt.
virtual Array<uShort> casa::TableExprNodeArray::getElemColumnuShort | ( | const Vector< uInt > & | rownrs, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnuShort.
virtual MVTime casa::TableExprNodeArray::getElemDate | ( | const TableExprId & | id, |
const Slicer & | index | ||
) | [virtual] |
virtual DComplex casa::TableExprNodeArray::getElemDComplex | ( | const TableExprId & | id, |
const Slicer & | index | ||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnDComplex, and casa::TableExprNodeArrayColumnComplex.
virtual Double casa::TableExprNodeArray::getElemDouble | ( | const TableExprId & | id, |
const Slicer & | index | ||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnDouble, and casa::TableExprNodeArrayColumnFloat.
virtual Int64 casa::TableExprNodeArray::getElemInt | ( | const TableExprId & | id, |
const Slicer & | index | ||
) | [virtual] |
virtual String casa::TableExprNodeArray::getElemString | ( | const TableExprId & | id, |
const Slicer & | index | ||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnString.
virtual const IPosition& casa::TableExprNodeArray::getShape | ( | const TableExprId & | id | ) | [virtual] |
Get the shape of the array in the given row.
This default implementation evaluates the value and returns its shape.
Reimplemented from casa::TableExprNodeRep.
Reimplemented in casa::TableExprNodeArrayColumn, and casa::TableExprNodeRecordFieldArray.
virtual Array<Bool> casa::TableExprNodeArray::getSliceBool | ( | const TableExprId & | id, |
const Slicer & | |||
) | [virtual] |
Get a slice of the array in the given row.
Reimplemented in casa::TableExprNodeArrayColumnBool.
virtual Array<MVTime> casa::TableExprNodeArray::getSliceDate | ( | const TableExprId & | id, |
const Slicer & | |||
) | [virtual] |
virtual Array<DComplex> casa::TableExprNodeArray::getSliceDComplex | ( | const TableExprId & | id, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnDComplex, and casa::TableExprNodeArrayColumnComplex.
virtual Array<Double> casa::TableExprNodeArray::getSliceDouble | ( | const TableExprId & | id, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnDouble, and casa::TableExprNodeArrayColumnFloat.
virtual Array<Int64> casa::TableExprNodeArray::getSliceInt | ( | const TableExprId & | id, |
const Slicer & | |||
) | [virtual] |
virtual Array<String> casa::TableExprNodeArray::getSliceString | ( | const TableExprId & | id, |
const Slicer & | |||
) | [virtual] |
Reimplemented in casa::TableExprNodeArrayColumnString.
virtual Array<Bool> casa::TableExprNodeArray::hasArrayBool | ( | const TableExprId & | id, |
const Array< Bool > & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Array<Bool> casa::TableExprNodeArray::hasArrayDate | ( | const TableExprId & | id, |
const Array< MVTime > & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Array<Bool> casa::TableExprNodeArray::hasArrayDComplex | ( | const TableExprId & | id, |
const Array< DComplex > & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Array<Bool> casa::TableExprNodeArray::hasArrayDouble | ( | const TableExprId & | id, |
const Array< Double > & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Array<Bool> casa::TableExprNodeArray::hasArrayInt | ( | const TableExprId & | id, |
const Array< Int64 > & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Array<Bool> casa::TableExprNodeArray::hasArrayString | ( | const TableExprId & | id, |
const Array< String > & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Bool casa::TableExprNodeArray::hasBool | ( | const TableExprId & | id, |
Bool | value | ||
) | [virtual] |
Does a value occur in the set?
Reimplemented from casa::TableExprNodeRep.
virtual Bool casa::TableExprNodeArray::hasDate | ( | const TableExprId & | id, |
const MVTime & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Bool casa::TableExprNodeArray::hasDComplex | ( | const TableExprId & | id, |
const DComplex & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Bool casa::TableExprNodeArray::hasDouble | ( | const TableExprId & | id, |
Double | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Bool casa::TableExprNodeArray::hasInt | ( | const TableExprId & | id, |
Int64 | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Bool casa::TableExprNodeArray::hasString | ( | const TableExprId & | id, |
const String & | value | ||
) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
static Array<Int64> casa::TableExprNodeArray::makeArray | ( | const IPosition & | shape, |
Int64 | value | ||
) | [static] |
Make an array with the given shape and fill it with the value.
static Array<Double> casa::TableExprNodeArray::makeArray | ( | const IPosition & | shape, |
Double | value | ||
) | [static] |
static Array<DComplex> casa::TableExprNodeArray::makeArray | ( | const IPosition & | shape, |
const DComplex & | value | ||
) | [static] |
IPosition casa::TableExprNodeArray::varShape_p [protected] |
Definition at line 172 of file ExprNodeArray.h.