casacore::TableExprNodeRecordFieldArray Class Reference

Array field in record select expression tree. More...

#include <ExprNodeRecord.h>

Inheritance diagram for casacore::TableExprNodeRecordFieldArray:
casacore::TableExprNodeArray casacore::TableExprNodeBinary casacore::TableExprNodeRep

List of all members.

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 IPositiongetShape (const TableExprId &id)
 Get the shape of the array in the given row.
virtual MArray< BoolgetArrayBool (const TableExprId &id)
 Get an array value for this node in the given row.
virtual MArray< Int64getArrayInt (const TableExprId &id)
virtual MArray< DoublegetArrayDouble (const TableExprId &id)
 The default implementation of getArrayDouble does getArrayInt and converts the result.
virtual MArray< DComplex > getArrayDComplex (const TableExprId &id)
 The default implementation of getArrayDComplex does getArrayDouble and converts the result.
virtual MArray< StringgetArrayString (const TableExprId &id)

Protected Member Functions

const RecordInterfacegetRecord (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< IntfieldNrs_p
uInt lastEntry_p

Detailed Description

Array field in record select expression tree.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Synopsis

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.


Constructor & Destructor Documentation

casacore::TableExprNodeRecordFieldArray::TableExprNodeRecordFieldArray ( DataType  dtype,
const Block< Int > &  fieldNumbers 
)
casacore::TableExprNodeRecordFieldArray::~TableExprNodeRecordFieldArray (  ) 

Member Function Documentation

virtual MArray<Bool> casacore::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 casacore::TableExprNodeRep.

virtual MArray<DComplex> casacore::TableExprNodeRecordFieldArray::getArrayDComplex ( const TableExprId id  )  [virtual]

The default implementation of getArrayDComplex does getArrayDouble and converts the result.

Reimplemented from casacore::TableExprNodeArray.

virtual MArray<Double> casacore::TableExprNodeRecordFieldArray::getArrayDouble ( const TableExprId id  )  [virtual]

The default implementation of getArrayDouble does getArrayInt and converts the result.

Reimplemented from casacore::TableExprNodeArray.

virtual MArray<Int64> casacore::TableExprNodeRecordFieldArray::getArrayInt ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

virtual MArray<String> casacore::TableExprNodeRecordFieldArray::getArrayString ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

const RecordInterface& casacore::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& casacore::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 casacore::TableExprNodeArray.

virtual Bool casacore::TableExprNodeRecordFieldArray::isDefined ( const TableExprId id  )  [virtual]

Is the value in the given row defined? The default implementation returns True.

Reimplemented from casacore::TableExprNodeRep.


Member Data Documentation

Definition at line 141 of file ExprNodeRecord.h.

Definition at line 142 of file ExprNodeRecord.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1