casacore::TableExprNodeArrayPart Class Reference

Array column part in table select expression. More...

#include <ExprNodeArray.h>

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

List of all members.

Public Member Functions

 TableExprNodeArrayPart (TableExprNodeRep *arrayNode, TableExprNodeIndex *)
 ~TableExprNodeArrayPart ()
void show (ostream &os, uInt indent) const
 Show the node.
Bool getBool (const TableExprId &id)
 Get a scalar value for this node in the given row.
Int64 getInt (const TableExprId &id)
Double getDouble (const TableExprId &id)
DComplex getDComplex (const TableExprId &id)
String getString (const TableExprId &id)
MVTime getDate (const TableExprId &id)
MArray< BoolgetArrayBool (const TableExprId &id)
 Get an array value for this node in the given row.
MArray< Int64getArrayInt (const TableExprId &id)
MArray< DoublegetArrayDouble (const TableExprId &id)
 The default implementation of getArrayDouble does getArrayInt and converts the result.
MArray< DComplex > getArrayDComplex (const TableExprId &id)
 The default implementation of getArrayDComplex does getArrayDouble and converts the result.
MArray< StringgetArrayString (const TableExprId &id)
MArray< MVTimegetArrayDate (const TableExprId &id)
Bool getColumnDataType (DataType &) const
 Get the data type of this column (if possible).
Array< BoolgetColumnBool (const Vector< uInt > &rownrs)
 Get the value of the expression evaluated for the entire column.
Array< uChargetColumnuChar (const Vector< uInt > &rownrs)
Array< ShortgetColumnShort (const Vector< uInt > &rownrs)
Array< uShortgetColumnuShort (const Vector< uInt > &rownrs)
Array< IntgetColumnInt (const Vector< uInt > &rownrs)
Array< uIntgetColumnuInt (const Vector< uInt > &rownrs)
Array< FloatgetColumnFloat (const Vector< uInt > &rownrs)
Array< DoublegetColumnDouble (const Vector< uInt > &rownrs)
Array< Complex > getColumnComplex (const Vector< uInt > &rownrs)
Array< DComplex > getColumnDComplex (const Vector< uInt > &rownrs)
Array< StringgetColumnString (const Vector< uInt > &rownrs)
const TableExprNodeIndexgetIndexNode () const
 Get the index node.
const TableExprNodeArrayColumngetColumnNode () const
 Get the array column node.

Private Attributes

TableExprNodeIndexindexNode_p
TableExprNodeArrayarrNode_p
TableExprNodeArrayColumncolNode_p

Detailed Description

Array column part in table select expression.

Intended use:

Internal

Review Status

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

Prerequisite

Synopsis

This class handles a part of an array. It uses a TableExprNodeArray to handle the array and a TableExprNodeIndex to store the index.

Definition at line 786 of file ExprNodeArray.h.


Constructor & Destructor Documentation

casacore::TableExprNodeArrayPart::TableExprNodeArrayPart ( TableExprNodeRep arrayNode,
TableExprNodeIndex  
)
casacore::TableExprNodeArrayPart::~TableExprNodeArrayPart (  ) 

Member Function Documentation

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

MArray<MVTime> casacore::TableExprNodeArrayPart::getArrayDate ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

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

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

Reimplemented from casacore::TableExprNodeArray.

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

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

Reimplemented from casacore::TableExprNodeArray.

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

Reimplemented from casacore::TableExprNodeRep.

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

Reimplemented from casacore::TableExprNodeRep.

Bool casacore::TableExprNodeArrayPart::getBool ( const TableExprId id  )  [virtual]

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

Array<Bool> casacore::TableExprNodeArrayPart::getColumnBool ( const Vector< uInt > &  rownrs  )  [virtual]

Get the value of the expression evaluated for the entire column.

The data of function called should match the data type as returned by function getColumnDataType.

Reimplemented from casacore::TableExprNodeRep.

Array<Complex> casacore::TableExprNodeArrayPart::getColumnComplex ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Bool casacore::TableExprNodeArrayPart::getColumnDataType ( DataType &   )  const [virtual]

Get the data type of this column (if possible).

It returns with a False status when the index is not constant (that means that the index can vary with row number).

Reimplemented from casacore::TableExprNodeRep.

Array<DComplex> casacore::TableExprNodeArrayPart::getColumnDComplex ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Array<Double> casacore::TableExprNodeArrayPart::getColumnDouble ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Array<Float> casacore::TableExprNodeArrayPart::getColumnFloat ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Array<Int> casacore::TableExprNodeArrayPart::getColumnInt ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

const TableExprNodeArrayColumn * casacore::TableExprNodeArrayPart::getColumnNode (  )  const [inline]

Get the array column node.

It returns 0 if the parent object is no array column.

Definition at line 869 of file ExprNodeArray.h.

References colNode_p.

Array<Short> casacore::TableExprNodeArrayPart::getColumnShort ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Array<String> casacore::TableExprNodeArrayPart::getColumnString ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Array<uChar> casacore::TableExprNodeArrayPart::getColumnuChar ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Array<uInt> casacore::TableExprNodeArrayPart::getColumnuInt ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Array<uShort> casacore::TableExprNodeArrayPart::getColumnuShort ( const Vector< uInt > &  rownrs  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

MVTime casacore::TableExprNodeArrayPart::getDate ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

DComplex casacore::TableExprNodeArrayPart::getDComplex ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

Double casacore::TableExprNodeArrayPart::getDouble ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

const TableExprNodeIndex * casacore::TableExprNodeArrayPart::getIndexNode (  )  const [inline]

Get the index node.

Definition at line 863 of file ExprNodeArray.h.

References indexNode_p.

Int64 casacore::TableExprNodeArrayPart::getInt ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

String casacore::TableExprNodeArrayPart::getString ( const TableExprId id  )  [virtual]

Reimplemented from casacore::TableExprNodeRep.

void casacore::TableExprNodeArrayPart::show ( ostream &  os,
uInt  indent 
) const [virtual]

Show the node.

Reimplemented from casacore::TableExprNodeBinary.


Member Data Documentation

Definition at line 835 of file ExprNodeArray.h.

Definition at line 836 of file ExprNodeArray.h.

Referenced by getColumnNode().

Definition at line 834 of file ExprNodeArray.h.

Referenced by getIndexNode().


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