casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::TableExprNodeArrayPart Class Reference

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

#include <ExprNodeArray.h>

Inheritance diagram for casa::TableExprNodeArrayPart:
casa::TableExprNodeArray casa::TableExprNodeBinary casa::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)
 Is the expression a column aggregate function?
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)
Array< BoolgetArrayBool (const TableExprId &id)
 Get an array value for this node in the given row.
Array< Int64getArrayInt (const TableExprId &id)
Array< DoublegetArrayDouble (const TableExprId &id)
Array< DComplex > getArrayDComplex (const TableExprId &id)
 The default implementation of getArrayDComplex does getArrayDouble and converts the result.
Array< StringgetArrayString (const TableExprId &id)
Array< 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 728 of file ExprNodeArray.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from casa::TableExprNodeRep.

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

Reimplemented from casa::TableExprNodeArray.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

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.

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

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

Reimplemented from casa::TableExprNodeRep.

Bool casa::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 casa::TableExprNodeRep.

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

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

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

Reimplemented from casa::TableExprNodeRep.

Get the array column node.

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

Definition at line 811 of file ExprNodeArray.h.

References colNode_p.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

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

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Get the index node.

Definition at line 805 of file ExprNodeArray.h.

References indexNode_p.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

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

Show the node.

Reimplemented from casa::TableExprNodeBinary.


Member Data Documentation

Definition at line 777 of file ExprNodeArray.h.

Definition at line 778 of file ExprNodeArray.h.

Referenced by getColumnNode().

Definition at line 776 of file ExprNodeArray.h.

Referenced by getIndexNode().


The documentation for this class was generated from the following file: