Helper class for updates in TableParse. More...
#include <TableParse.h>
Public Member Functions | |
TableParseUpdate () | |
TableParseUpdate (const String &columnName, const String &columnNameMask, const TableExprNode &, Bool checkAggr=True) | |
Construct from a column name and expression. | |
TableParseUpdate (const String &columnName, const String &columnNameMask, const TableExprNodeSet &indices, const TableExprNode &, const TaQLStyle &) | |
Construct from a column name, subscripts or mask, and expression. | |
TableParseUpdate (const String &columnName, const String &columnNameMask, const TableExprNodeSet &indices1, const TableExprNodeSet &indices2, const TableExprNode &, const TaQLStyle &) | |
Construct from a column name, subscripts and mask, and expression. | |
void | handleIndices (const TableExprNodeSet &indices, const TaQLStyle &style) |
Handle the subscripts or mask. | |
~TableParseUpdate () | |
void | setColumnName (const String &name) |
Set the column name. | |
void | setColumnNameMask (const String &name) |
Set the column name forthe mask. | |
const String & | columnName () const |
Get the column name. | |
const String & | columnNameMask () const |
Get the possible column name for the mask. | |
Bool | maskFirst () const |
Tell if the mask is given first (i.e., before slice). | |
TableExprNodeIndex * | indexPtr () const |
Get the pointer to the indices. | |
const TableExprNode & | indexNode () const |
Get the index expression node. | |
const TableExprNode & | node () const |
Get the expression node. | |
TableExprNode & | node () |
const TableExprNode & | mask () const |
Get the mask. | |
void | adaptUnit (const Unit &columnUnit) |
Adapt the possible unit of the expression to the possible unit of the column. | |
Private Attributes | |
String | columnName_p |
String | columnNameMask_p |
Bool | maskFirst_p |
TableExprNodeIndex * | indexPtr_p |
TableExprNode | indexNode_p |
TableExprNode | mask_p |
TableExprNode | node_p |
Helper class for updates in TableParse.
Internal
TableParseUpdate holds a column name, optional indices, optional mask, and an update expression.
A table command is parsed. An object of this class is used to hold the column name, optional indices, and value expression for the UPDATE command.
Definition at line 262 of file TableParse.h.
casacore::TableParseUpdate::TableParseUpdate | ( | ) | [inline] |
Definition at line 265 of file TableParse.h.
casacore::TableParseUpdate::TableParseUpdate | ( | const String & | columnName, | |
const String & | columnNameMask, | |||
const TableExprNode & | , | |||
Bool | checkAggr = True | |||
) |
Construct from a column name and expression.
By default it checks if no aggregate functions are used.
casacore::TableParseUpdate::TableParseUpdate | ( | const String & | columnName, | |
const String & | columnNameMask, | |||
const TableExprNodeSet & | indices, | |||
const TableExprNode & | , | |||
const TaQLStyle & | ||||
) |
Construct from a column name, subscripts or mask, and expression.
It checks if no aggregate functions are used.
casacore::TableParseUpdate::TableParseUpdate | ( | const String & | columnName, | |
const String & | columnNameMask, | |||
const TableExprNodeSet & | indices1, | |||
const TableExprNodeSet & | indices2, | |||
const TableExprNode & | , | |||
const TaQLStyle & | ||||
) |
Construct from a column name, subscripts and mask, and expression.
It checks if no aggregate functions are used. It checks if one of the indices represents subscripts, the other a mask.
casacore::TableParseUpdate::~TableParseUpdate | ( | ) |
void casacore::TableParseUpdate::adaptUnit | ( | const Unit & | columnUnit | ) | [inline] |
Adapt the possible unit of the expression to the possible unit of the column.
Definition at line 976 of file TableParse.h.
References casacore::TableExprNode::adaptUnit(), and node_p.
const String & casacore::TableParseUpdate::columnName | ( | ) | const [inline] |
const String & casacore::TableParseUpdate::columnNameMask | ( | ) | const [inline] |
Get the possible column name for the mask.
Definition at line 966 of file TableParse.h.
References columnNameMask_p.
void casacore::TableParseUpdate::handleIndices | ( | const TableExprNodeSet & | indices, | |
const TaQLStyle & | style | |||
) |
Handle the subscripts or mask.
It checks if subscripts or mask was not already used.
const TableExprNode & casacore::TableParseUpdate::indexNode | ( | ) | const [inline] |
TableExprNodeIndex * casacore::TableParseUpdate::indexPtr | ( | ) | const [inline] |
const TableExprNode& casacore::TableParseUpdate::mask | ( | ) | const [inline] |
Bool casacore::TableParseUpdate::maskFirst | ( | ) | const [inline] |
Tell if the mask is given first (i.e., before slice).
Definition at line 311 of file TableParse.h.
References maskFirst_p.
TableExprNode & casacore::TableParseUpdate::node | ( | ) | [inline] |
Definition at line 974 of file TableParse.h.
References node_p.
const TableExprNode & casacore::TableParseUpdate::node | ( | ) | const [inline] |
void casacore::TableParseUpdate::setColumnName | ( | const String & | name | ) | [inline] |
void casacore::TableParseUpdate::setColumnNameMask | ( | const String & | name | ) | [inline] |
Set the column name forthe mask.
Definition at line 962 of file TableParse.h.
References columnNameMask_p.
Definition at line 335 of file TableParse.h.
Referenced by columnName(), and setColumnName().
Definition at line 336 of file TableParse.h.
Referenced by columnNameMask(), and setColumnNameMask().
Definition at line 339 of file TableParse.h.
Referenced by indexNode().
Definition at line 338 of file TableParse.h.
Referenced by indexPtr().
Definition at line 340 of file TableParse.h.
Referenced by mask().
Bool casacore::TableParseUpdate::maskFirst_p [private] |
Definition at line 337 of file TableParse.h.
Referenced by maskFirst().
Definition at line 341 of file TableParse.h.
Referenced by adaptUnit(), and node().