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

Scalar column in table select expression tree. More...

#include <ExprDerNode.h>

Inheritance diagram for casa::TableExprNodeColumn:
casa::TableExprNodeBinary casa::TableExprNodeRep

List of all members.

Public Member Functions

 TableExprNodeColumn (const Table &, const String &columnName)
 ~TableExprNodeColumn ()
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)
const TableColumngetColumn () const
Bool getColumnDataType (DataType &) const
 Get the data type of this scalar column.
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)

Static Public Member Functions

static Unit getColumnUnit (const TableColumn &)
 Get the column unit (can be empty).

Protected Attributes

TableColumntabColPtr_p

Detailed Description

Scalar column in table 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 298 of file ExprDerNode.h.


Constructor & Destructor Documentation

casa::TableExprNodeColumn::TableExprNodeColumn ( const Table ,
const String columnName 
)

Member Function Documentation

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.

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

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

Reimplemented from casa::TableExprNodeRep.

Bool casa::TableExprNodeColumn::getColumnDataType ( DataType &  ) const [virtual]

Get the data type of this scalar column.

Reimplemented from casa::TableExprNodeRep.

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

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

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

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Array<uInt> casa::TableExprNodeColumn::getColumnuInt ( const Vector< uInt > &  rownrs) [virtual]

Reimplemented from casa::TableExprNodeRep.

Get the column unit (can be empty).

Reimplemented from casa::TableExprNodeRep.

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

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.

Reimplemented from casa::TableExprNodeRep.


Member Data Documentation

Definition at line 330 of file ExprDerNode.h.


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