casa
$Rev:20696$
|
Scalar column in table select expression tree. More...
#include <ExprDerNode.h>
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 TableColumn & | getColumn () const |
Bool | getColumnDataType (DataType &) const |
Get the data type of this scalar column. | |
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) |
Static Public Member Functions | |
static Unit | getColumnUnit (const TableColumn &) |
Get the column unit (can be empty). | |
Protected Attributes | |
TableColumn * | tabColPtr_p |
Scalar column in table select expression tree.
Internal
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.
casa::TableExprNodeColumn::TableExprNodeColumn | ( | const Table & | , |
const String & | columnName | ||
) |
Bool casa::TableExprNodeColumn::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.
const TableColumn& casa::TableExprNodeColumn::getColumn | ( | ) | const |
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.
Array<Double> casa::TableExprNodeColumn::getColumnDouble | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<Float> casa::TableExprNodeColumn::getColumnFloat | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<Int> casa::TableExprNodeColumn::getColumnInt | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<Short> casa::TableExprNodeColumn::getColumnShort | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<String> casa::TableExprNodeColumn::getColumnString | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<uChar> casa::TableExprNodeColumn::getColumnuChar | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Array<uInt> casa::TableExprNodeColumn::getColumnuInt | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
static Unit casa::TableExprNodeColumn::getColumnUnit | ( | const TableColumn & | ) | [static] |
Get the column unit (can be empty).
Array<uShort> casa::TableExprNodeColumn::getColumnuShort | ( | const Vector< uInt > & | rownrs | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
DComplex casa::TableExprNodeColumn::getDComplex | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Double casa::TableExprNodeColumn::getDouble | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
Int64 casa::TableExprNodeColumn::getInt | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
String casa::TableExprNodeColumn::getString | ( | const TableExprId & | id | ) | [virtual] |
Reimplemented from casa::TableExprNodeRep.
TableColumn* casa::TableExprNodeColumn::tabColPtr_p [protected] |
Definition at line 330 of file ExprDerNode.h.