casa
$Rev:20696$
|
Scalar field in record select expression tree. More...
#include <ExprNodeRecord.h>
Public Member Functions | |
TableExprNodeRecordField (DataType dtype, const Block< Int > &fieldNumbers) | |
~TableExprNodeRecordField () | |
virtual const IPosition & | getShape (const TableExprId &id) |
Get the shape for the given row. | |
virtual Bool | isDefined (const TableExprId &id) |
Is the value in the given row defined? The default implementation returns True. | |
virtual Bool | getBool (const TableExprId &id) |
Is the expression a column aggregate function? | |
virtual Int64 | getInt (const TableExprId &id) |
virtual Double | getDouble (const TableExprId &id) |
virtual DComplex | getDComplex (const TableExprId &id) |
virtual String | getString (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 |
Scalar 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 76 of file ExprNodeRecord.h.
casa::TableExprNodeRecordField::TableExprNodeRecordField | ( | DataType | dtype, |
const Block< Int > & | fieldNumbers | ||
) |
virtual Bool casa::TableExprNodeRecordField::getBool | ( | const TableExprId & | id | ) | [virtual] |
Is the expression a column aggregate function?
virtual Bool isAggregate() const; Get a scalar 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 DComplex casa::TableExprNodeRecordField::getDComplex | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Double casa::TableExprNodeRecordField::getDouble | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Int64 casa::TableExprNodeRecordField::getInt | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
const RecordInterface& casa::TableExprNodeRecordField::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::TableExprNodeRecordField::getShape | ( | const TableExprId & | id | ) | [virtual] |
Get the shape for the given row.
Reimplemented from casa::TableExprNodeRep.
virtual String casa::TableExprNodeRecordField::getString | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
virtual Bool casa::TableExprNodeRecordField::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::TableExprNodeRecordField::fieldNrs_p [protected] |
Definition at line 93 of file ExprNodeRecord.h.
uInt casa::TableExprNodeRecordField::lastEntry_p [protected] |
Definition at line 94 of file ExprNodeRecord.h.