casa
$Rev:20696$
|
Array field in record select expression tree. More...
#include <ExprNodeRecord.h>
Public Member Functions | |
TableExprNodeRecordFieldArray (DataType dtype, const Block< Int > &fieldNumbers) | |
~TableExprNodeRecordFieldArray () | |
virtual Bool | isDefined (const TableExprId &id) |
Is the value in the given row defined? The default implementation returns True. | |
virtual const IPosition & | getShape (const TableExprId &id) |
Get the shape of the array in the given row. | |
virtual Array< Bool > | getArrayBool (const TableExprId &id) |
Get an array value for this node in the given row. | |
virtual Array< Int64 > | getArrayInt (const TableExprId &id) |
virtual Array< Double > | getArrayDouble (const TableExprId &id) |
virtual Array< DComplex > | getArrayDComplex (const TableExprId &id) |
The default implementation of getArrayDComplex does getArrayDouble and converts the result. | |
virtual Array< String > | getArrayString (const TableExprId &id) |
Protected Member Functions | |
const RecordInterface & | getRecord (const TableExprId &id) const |
Get the record for the last field number, thus going through all subrecords for the other field numbers. | |
Protected Attributes | |
Block< Int > | fieldNrs_p |
uInt | lastEntry_p |
Array field in record select expression tree.
Internal
This class represents a scalar column in a table select expression tree. When the select expression gets evaluated, the value of the given row in the column is used.
Definition at line 124 of file ExprNodeRecord.h.
casa::TableExprNodeRecordFieldArray::TableExprNodeRecordFieldArray | ( | DataType | dtype, |
const Block< Int > & | fieldNumbers | ||
) |
virtual Array<Bool> casa::TableExprNodeRecordFieldArray::getArrayBool | ( | const TableExprId & | id | ) | [virtual] |
Get an array value for this node in the given row.
The appropriate functions are implemented in the derived classes and will usually invoke the get in their children and apply the operator on the resulting values.
Reimplemented from casa::TableExprNodeRep.
virtual Array<DComplex> casa::TableExprNodeRecordFieldArray::getArrayDComplex | ( | const TableExprId & | id | ) | [virtual] |
The default implementation of getArrayDComplex does getArrayDouble and converts the result.
Reimplemented from casa::TableExprNodeArray.
virtual Array<Double> casa::TableExprNodeRecordFieldArray::getArrayDouble | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Array<Int64> casa::TableExprNodeRecordFieldArray::getArrayInt | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Array<String> casa::TableExprNodeRecordFieldArray::getArrayString | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
const RecordInterface& casa::TableExprNodeRecordFieldArray::getRecord | ( | const TableExprId & | id | ) | const [protected] |
Get the record for the last field number, thus going through all subrecords for the other field numbers.
virtual const IPosition& casa::TableExprNodeRecordFieldArray::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::TableExprNodeArray.
virtual Bool casa::TableExprNodeRecordFieldArray::isDefined | ( | const TableExprId & | id | ) | [virtual] |
Is the value in the given row defined? The default implementation returns True.
Reimplemented from casa::TableExprNodeRep.
Block<Int> casa::TableExprNodeRecordFieldArray::fieldNrs_p [protected] |
Definition at line 141 of file ExprNodeRecord.h.
uInt casa::TableExprNodeRecordFieldArray::lastEntry_p [protected] |
Definition at line 142 of file ExprNodeRecord.h.