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) |
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< Bool > | getArrayBool (const TableExprId &id) |
Get an array value for this node in the given row. | |
MArray< Int64 > | getArrayInt (const TableExprId &id) |
MArray< Double > | getArrayDouble (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< String > | getArrayString (const TableExprId &id) |
MArray< 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 786 of file ExprNodeArray.h.
casacore::TableExprNodeArrayPart::TableExprNodeArrayPart | ( | TableExprNodeRep * | arrayNode, | |
TableExprNodeIndex * | ||||
) |
casacore::TableExprNodeArrayPart::~TableExprNodeArrayPart | ( | ) |
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] |
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.
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().