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

Base class for arrays in table select expression. More...

#include <ExprNodeArray.h>

Inheritance diagram for casa::TableExprNodeArray:
casa::TableExprNodeBinary casa::TableExprNodeRep casa::TableExprFuncNodeArray casa::TableExprNodeArrayAND casa::TableExprNodeArrayBitAndInt casa::TableExprNodeArrayBitNegate casa::TableExprNodeArrayBitOrInt casa::TableExprNodeArrayBitXorInt casa::TableExprNodeArrayColumn casa::TableExprNodeArrayConstBool casa::TableExprNodeArrayConstDate casa::TableExprNodeArrayConstDComplex casa::TableExprNodeArrayConstDouble casa::TableExprNodeArrayConstInt casa::TableExprNodeArrayConstString casa::TableExprNodeArrayDivide casa::TableExprNodeArrayEQBool casa::TableExprNodeArrayEQDate casa::TableExprNodeArrayEQDComplex casa::TableExprNodeArrayEQDouble casa::TableExprNodeArrayEQInt casa::TableExprNodeArrayEQRegex casa::TableExprNodeArrayEQString casa::TableExprNodeArrayGEDate casa::TableExprNodeArrayGEDComplex casa::TableExprNodeArrayGEDouble casa::TableExprNodeArrayGEInt casa::TableExprNodeArrayGEString casa::TableExprNodeArrayGTDate casa::TableExprNodeArrayGTDComplex casa::TableExprNodeArrayGTDouble casa::TableExprNodeArrayGTInt casa::TableExprNodeArrayGTString casa::TableExprNodeArrayINDate casa::TableExprNodeArrayINDComplex casa::TableExprNodeArrayINDouble casa::TableExprNodeArrayINInt casa::TableExprNodeArrayINString casa::TableExprNodeArrayMIN casa::TableExprNodeArrayMinus casa::TableExprNodeArrayModulo casa::TableExprNodeArrayNEBool casa::TableExprNodeArrayNEDate casa::TableExprNodeArrayNEDComplex casa::TableExprNodeArrayNEDouble casa::TableExprNodeArrayNEInt casa::TableExprNodeArrayNERegex casa::TableExprNodeArrayNEString casa::TableExprNodeArrayNOT casa::TableExprNodeArrayOR casa::TableExprNodeArrayPart casa::TableExprNodeArrayPlus casa::TableExprNodeArrayTimes casa::TableExprNodeArrayUnit casa::TableExprNodeRecordFieldArray casa::TableExprUDFNodeArray

List of all members.

Public Member Functions

 TableExprNodeArray (NodeDataType, OperType)
 Create the object.
 TableExprNodeArray (const TableExprNodeRep &node, NodeDataType, OperType)
 TableExprNodeArray (NodeDataType, OperType, const IPosition &shape)
 ~TableExprNodeArray ()
 
     

virtual const IPositiongetShape (const TableExprId &id)
 Get the shape of the array in the given row.
virtual Array< DComplex > getArrayDComplex (const TableExprId &id)
 The default implementation of getArrayDComplex does getArrayDouble and converts the result.
virtual Bool hasBool (const TableExprId &id, Bool value)
 Does a value occur in the set?
virtual Bool hasInt (const TableExprId &id, Int64 value)
virtual Bool hasDouble (const TableExprId &id, Double value)
virtual Bool hasDComplex (const TableExprId &id, const DComplex &value)
virtual Bool hasString (const TableExprId &id, const String &value)
virtual Bool hasDate (const TableExprId &id, const MVTime &value)
virtual Array< BoolhasArrayBool (const TableExprId &id, const Array< Bool > &value)
virtual Array< BoolhasArrayInt (const TableExprId &id, const Array< Int64 > &value)
virtual Array< BoolhasArrayDouble (const TableExprId &id, const Array< Double > &value)
virtual Array< BoolhasArrayDComplex (const TableExprId &id, const Array< DComplex > &value)
virtual Array< BoolhasArrayString (const TableExprId &id, const Array< String > &value)
virtual Array< BoolhasArrayDate (const TableExprId &id, const Array< MVTime > &value)
virtual Bool getElemBool (const TableExprId &id, const Slicer &index)
 Get a single element from the array in the given row.
virtual Int64 getElemInt (const TableExprId &id, const Slicer &index)
virtual Double getElemDouble (const TableExprId &id, const Slicer &index)
virtual DComplex getElemDComplex (const TableExprId &id, const Slicer &index)
virtual String getElemString (const TableExprId &id, const Slicer &index)
virtual MVTime getElemDate (const TableExprId &id, const Slicer &index)
virtual Array< BoolgetSliceBool (const TableExprId &id, const Slicer &)
 Get a slice of the array in the given row.
virtual Array< Int64getSliceInt (const TableExprId &id, const Slicer &)
virtual Array< DoublegetSliceDouble (const TableExprId &id, const Slicer &)
virtual Array< DComplex > getSliceDComplex (const TableExprId &id, const Slicer &)
virtual Array< StringgetSliceString (const TableExprId &id, const Slicer &)
virtual Array< MVTimegetSliceDate (const TableExprId &id, const Slicer &)
virtual Array< BoolgetElemColumnBool (const Vector< uInt > &rownrs, const Slicer &)
 Get a single element for the entire column (used by sort).
virtual Array< uChargetElemColumnuChar (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< ShortgetElemColumnShort (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< uShortgetElemColumnuShort (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< IntgetElemColumnInt (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< uIntgetElemColumnuInt (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< FloatgetElemColumnFloat (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< DoublegetElemColumnDouble (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< Complex > getElemColumnComplex (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< DComplex > getElemColumnDComplex (const Vector< uInt > &rownrs, const Slicer &)
virtual Array< StringgetElemColumnString (const Vector< uInt > &rownrs, const Slicer &)

Static Public Member Functions

static Array< Int64makeArray (const IPosition &shape, Int64 value)
 Make an array with the given shape and fill it with the value.
static Array< DoublemakeArray (const IPosition &shape, Double value)
static Array< DComplex > makeArray (const IPosition &shape, const DComplex &value)

Protected Attributes

IPosition varShape_p

Detailed Description

Base class for arrays in table select expression.

Intended use:

Internal

Review Status

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

Prerequisite

Synopsis

This class is the base class to represent an array. The actual storing of the array column is done by its derivations.

Definition at line 65 of file ExprNodeArray.h.


Constructor & Destructor Documentation

Create the object.

     


Member Function Documentation

virtual Array<DComplex> casa::TableExprNodeArray::getArrayDComplex ( const TableExprId id) [virtual]
virtual Bool casa::TableExprNodeArray::getElemBool ( const TableExprId id,
const Slicer index 
) [virtual]

Get a single element from the array in the given row.

Reimplemented in casa::TableExprNodeArrayColumnBool.

virtual Array<Bool> casa::TableExprNodeArray::getElemColumnBool ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]

Get a single element for the entire column (used by sort).

Reimplemented in casa::TableExprNodeArrayColumnBool.

virtual Array<Complex> casa::TableExprNodeArray::getElemColumnComplex ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<DComplex> casa::TableExprNodeArray::getElemColumnDComplex ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<Double> casa::TableExprNodeArray::getElemColumnDouble ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<Float> casa::TableExprNodeArray::getElemColumnFloat ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<Int> casa::TableExprNodeArray::getElemColumnInt ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<Short> casa::TableExprNodeArray::getElemColumnShort ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<String> casa::TableExprNodeArray::getElemColumnString ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<uChar> casa::TableExprNodeArray::getElemColumnuChar ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<uInt> casa::TableExprNodeArray::getElemColumnuInt ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual Array<uShort> casa::TableExprNodeArray::getElemColumnuShort ( const Vector< uInt > &  rownrs,
const Slicer  
) [virtual]
virtual MVTime casa::TableExprNodeArray::getElemDate ( const TableExprId id,
const Slicer index 
) [virtual]
virtual DComplex casa::TableExprNodeArray::getElemDComplex ( const TableExprId id,
const Slicer index 
) [virtual]
virtual Double casa::TableExprNodeArray::getElemDouble ( const TableExprId id,
const Slicer index 
) [virtual]
virtual Int64 casa::TableExprNodeArray::getElemInt ( const TableExprId id,
const Slicer index 
) [virtual]
virtual String casa::TableExprNodeArray::getElemString ( const TableExprId id,
const Slicer index 
) [virtual]
virtual const IPosition& casa::TableExprNodeArray::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 casa::TableExprNodeRep.

Reimplemented in casa::TableExprNodeArrayColumn, and casa::TableExprNodeRecordFieldArray.

virtual Array<Bool> casa::TableExprNodeArray::getSliceBool ( const TableExprId id,
const Slicer  
) [virtual]

Get a slice of the array in the given row.

Reimplemented in casa::TableExprNodeArrayColumnBool.

virtual Array<MVTime> casa::TableExprNodeArray::getSliceDate ( const TableExprId id,
const Slicer  
) [virtual]
virtual Array<DComplex> casa::TableExprNodeArray::getSliceDComplex ( const TableExprId id,
const Slicer  
) [virtual]
virtual Array<Double> casa::TableExprNodeArray::getSliceDouble ( const TableExprId id,
const Slicer  
) [virtual]
virtual Array<Int64> casa::TableExprNodeArray::getSliceInt ( const TableExprId id,
const Slicer  
) [virtual]
virtual Array<String> casa::TableExprNodeArray::getSliceString ( const TableExprId id,
const Slicer  
) [virtual]
virtual Array<Bool> casa::TableExprNodeArray::hasArrayBool ( const TableExprId id,
const Array< Bool > &  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Array<Bool> casa::TableExprNodeArray::hasArrayDate ( const TableExprId id,
const Array< MVTime > &  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Array<Bool> casa::TableExprNodeArray::hasArrayDComplex ( const TableExprId id,
const Array< DComplex > &  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Array<Bool> casa::TableExprNodeArray::hasArrayDouble ( const TableExprId id,
const Array< Double > &  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Array<Bool> casa::TableExprNodeArray::hasArrayInt ( const TableExprId id,
const Array< Int64 > &  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Array<Bool> casa::TableExprNodeArray::hasArrayString ( const TableExprId id,
const Array< String > &  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Bool casa::TableExprNodeArray::hasBool ( const TableExprId id,
Bool  value 
) [virtual]

Does a value occur in the set?

Reimplemented from casa::TableExprNodeRep.

virtual Bool casa::TableExprNodeArray::hasDate ( const TableExprId id,
const MVTime value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Bool casa::TableExprNodeArray::hasDComplex ( const TableExprId id,
const DComplex &  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Bool casa::TableExprNodeArray::hasDouble ( const TableExprId id,
Double  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Bool casa::TableExprNodeArray::hasInt ( const TableExprId id,
Int64  value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

virtual Bool casa::TableExprNodeArray::hasString ( const TableExprId id,
const String value 
) [virtual]

Reimplemented from casa::TableExprNodeRep.

static Array<Int64> casa::TableExprNodeArray::makeArray ( const IPosition shape,
Int64  value 
) [static]

Make an array with the given shape and fill it with the value.

static Array<Double> casa::TableExprNodeArray::makeArray ( const IPosition shape,
Double  value 
) [static]
static Array<DComplex> casa::TableExprNodeArray::makeArray ( const IPosition shape,
const DComplex &  value 
) [static]

Member Data Documentation

Definition at line 172 of file ExprNodeArray.h.


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