The identification of a TaQL selection subject. More...
#include <TableExprId.h>
Public Member Functions | |
TableExprId () | |
Default constructor sets rownr to -1. | |
TableExprId (uInt rowNumber) | |
Construct it from a row number. | |
TableExprId (const RecordInterface &) | |
Construct it from a Record object. | |
TableExprId (const TableExprData &data) | |
Construct it from pointers to data. | |
~TableExprId () | |
Bool | byRow () const |
Is the id given by row number? | |
Bool | byRecord () const |
Is the id given as a RecordInterface? | |
Bool | byData () const |
Is the id given as a TableExprData? | |
Int64 | rownr () const |
Get the row number. | |
const RecordInterface & | record () const |
Get the Record reference. | |
const TableExprData & | data () const |
Get the data reference. | |
void | setRownr (uInt rownr) |
Set the row number. | |
void | setRecord (const RecordInterface &) |
Set the record. | |
Private Attributes | |
Int | type_p |
union { | |
Int64 row_p | |
const RecordInterface * record_p | |
const TableExprData * data_p | |
}; |
The identification of a TaQL selection subject.
Public interface
This class provides the user the ability to identify the data objects to test in a TaQL expression. In this way a TaQL expression is not limited to tables, but can be used for any set of data. Three types are available:
The TaQL expression must be setup with this in mind by constructing the appropriate TableExprNode leaf objects.
When used for tables, the function Table::col should be used to create the TableExprNode
objects for the table columns to be used in the expression.
For the other cases class TableExprNodeRecordField has to be used to know the index of the fields in the expression. It uses a record (description) for this purpose.
This class makes it possible that TaQL can be used in a very versatile way.
Definition at line 98 of file TableExprId.h.
casacore::TableExprId::TableExprId | ( | ) | [inline] |
Default constructor sets rownr to -1.
Definition at line 151 of file TableExprId.h.
casacore::TableExprId::TableExprId | ( | uInt | rowNumber | ) | [inline] |
Construct it from a row number.
Definition at line 156 of file TableExprId.h.
casacore::TableExprId::TableExprId | ( | const RecordInterface & | record | ) | [inline] |
Construct it from a Record object.
Definition at line 161 of file TableExprId.h.
casacore::TableExprId::TableExprId | ( | const TableExprData & | data | ) | [inline] |
Construct it from pointers to data.
Definition at line 166 of file TableExprId.h.
casacore::TableExprId::~TableExprId | ( | ) | [inline] |
Definition at line 113 of file TableExprId.h.
Bool casacore::TableExprId::byData | ( | ) | const [inline] |
Is the id given as a TableExprData?
Definition at line 206 of file TableExprId.h.
References type_p.
Bool casacore::TableExprId::byRecord | ( | ) | const [inline] |
Is the id given as a RecordInterface?
Definition at line 201 of file TableExprId.h.
References type_p.
Bool casacore::TableExprId::byRow | ( | ) | const [inline] |
const TableExprData & casacore::TableExprId::data | ( | ) | const [inline] |
const RecordInterface & casacore::TableExprId::record | ( | ) | const [inline] |
Int64 casacore::TableExprId::rownr | ( | ) | const [inline] |
void casacore::TableExprId::setRecord | ( | const RecordInterface & | record | ) | [inline] |
void casacore::TableExprId::setRownr | ( | uInt | rownr | ) | [inline] |
Set the row number.
Definition at line 186 of file TableExprId.h.
References row_p.
Referenced by casacore::TableParseSelect::doGroupByAggrSingleKey().
union { ... } [private] |
Definition at line 145 of file TableExprId.h.
Referenced by data().
Definition at line 144 of file TableExprId.h.
Referenced by record(), and setRecord().
Definition at line 143 of file TableExprId.h.
Referenced by rownr(), and setRownr().
Int casacore::TableExprId::type_p [private] |
Definition at line 141 of file TableExprId.h.
Referenced by byData(), byRecord(), and byRow().