casa
$Rev:20696$
|
Array column part in table select expression. More...
#include <ExprNodeArray.h>
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< Bool > | getArrayBool (const TableExprId &id) |
Get an array value for this node in the given row. | |
Array< Int64 > | getArrayInt (const TableExprId &id) |
Array< Double > | getArrayDouble (const TableExprId &id) |
Array< DComplex > | getArrayDComplex (const TableExprId &id) |
The default implementation of getArrayDComplex does getArrayDouble and converts the result. | |
Array< String > | getArrayString (const TableExprId &id) |
Array< MVTime > | getArrayDate (const TableExprId &id) |
Bool | getColumnDataType (DataType &) const |
Get the data type of this column (if possible). | |
Array< Bool > | getColumnBool (const Vector< uInt > &rownrs) |
Get the value of the expression evaluated for the entire column. | |
Array< uChar > | getColumnuChar (const Vector< uInt > &rownrs) |
Array< Short > | getColumnShort (const Vector< uInt > &rownrs) |
Array< uShort > | getColumnuShort (const Vector< uInt > &rownrs) |
Array< Int > | getColumnInt (const Vector< uInt > &rownrs) |
Array< uInt > | getColumnuInt (const Vector< uInt > &rownrs) |
Array< Float > | getColumnFloat (const Vector< uInt > &rownrs) |
Array< Double > | getColumnDouble (const Vector< uInt > &rownrs) |
Array< Complex > | getColumnComplex (const Vector< uInt > &rownrs) |
Array< DComplex > | getColumnDComplex (const Vector< uInt > &rownrs) |
Array< String > | getColumnString (const Vector< uInt > &rownrs) |
const TableExprNodeIndex * | getIndexNode () const |
Get the index node. | |
const TableExprNodeArrayColumn * | getColumnNode () const |
Get the array column node. | |
Private Attributes | |
TableExprNodeIndex * | indexNode_p |
TableExprNodeArray * | arrNode_p |
TableExprNodeArrayColumn * | colNode_p |
Array column part in table select expression.
Internal
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.
casa::TableExprNodeArrayPart::TableExprNodeArrayPart | ( | TableExprNodeRep * | arrayNode, |
TableExprNodeIndex * | |||
) |
Array<Bool> casa::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 casa::TableExprNodeRep.
Array<MVTime> casa::TableExprNodeArrayPart::getArrayDate | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<DComplex> casa::TableExprNodeArrayPart::getArrayDComplex | ( | const TableExprId & | id | ) | [virtual] |
The default implementation of getArrayDComplex does getArrayDouble and converts the result.
Reimplemented from casa::TableExprNodeArray.
Array<Double> casa::TableExprNodeArrayPart::getArrayDouble | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<Int64> casa::TableExprNodeArrayPart::getArrayInt | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<String> casa::TableExprNodeArrayPart::getArrayString | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Bool casa::TableExprNodeArrayPart::getBool | ( | const TableExprId & | id | ) | [virtual] |
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::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 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.
Array<Double> casa::TableExprNodeArrayPart::getColumnDouble | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<Float> casa::TableExprNodeArrayPart::getColumnFloat | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<Int> casa::TableExprNodeArrayPart::getColumnInt | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
const TableExprNodeArrayColumn * casa::TableExprNodeArrayPart::getColumnNode | ( | ) | const [inline] |
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.
Array<Short> casa::TableExprNodeArrayPart::getColumnShort | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<String> casa::TableExprNodeArrayPart::getColumnString | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<uChar> casa::TableExprNodeArrayPart::getColumnuChar | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<uInt> casa::TableExprNodeArrayPart::getColumnuInt | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<uShort> casa::TableExprNodeArrayPart::getColumnuShort | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
MVTime casa::TableExprNodeArrayPart::getDate | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
DComplex casa::TableExprNodeArrayPart::getDComplex | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Double casa::TableExprNodeArrayPart::getDouble | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
const TableExprNodeIndex * casa::TableExprNodeArrayPart::getIndexNode | ( | ) | const [inline] |
Int64 casa::TableExprNodeArrayPart::getInt | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
String casa::TableExprNodeArrayPart::getString | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
void casa::TableExprNodeArrayPart::show | ( | ostream & | os, |
uInt | indent | ||
) | const [virtual] |
Show the node.
Reimplemented from casa::TableExprNodeBinary.
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().