casacore
|
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. More... | |
TableParseUpdate (const String &columnName, const String &columnNameMask, const TableExprNodeSet &indices, const TableExprNode &, const TaQLStyle &) | |
Construct from a column name, subscripts or mask, and expression. More... | |
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. More... | |
void | handleIndices (const TableExprNodeSet &indices, const TaQLStyle &style) |
Handle the subscripts or mask. More... | |
~TableParseUpdate () | |
void | setColumnName (const String &name) |
Set the column name. More... | |
void | setColumnNameMask (const String &name) |
Set the column name forthe mask. More... | |
const String & | columnName () const |
Get the column name. More... | |
const String & | columnNameMask () const |
Get the possible column name for the mask. More... | |
Bool | maskFirst () const |
Tell if the mask is given first (i.e., before slice). More... | |
TableExprNodeIndex * | indexPtr () const |
Get the pointer to the indices. More... | |
const TableExprNode & | indexNode () const |
Get the index expression node. More... | |
const TableExprNode & | node () const |
Get the expression node. More... | |
TableExprNode & | node () |
const TableExprNode & | mask () const |
Get the mask. More... | |
void | adaptUnit (const Unit &columnUnit) |
Adapt the possible unit of the expression to the possible unit of the column. More... | |
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 263 of file TableParse.h.
|
inline |
Definition at line 266 of file TableParse.h.
References casacore::True.
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 | ( | ) |
|
inline |
Adapt the possible unit of the expression to the possible unit of the column.
Definition at line 984 of file TableParse.h.
|
inline |
Get the column name.
Definition at line 972 of file TableParse.h.
|
inline |
Get the possible column name for the mask.
Definition at line 974 of file TableParse.h.
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.
|
inline |
Get the index expression node.
Definition at line 978 of file TableParse.h.
|
inline |
Get the pointer to the indices.
Definition at line 976 of file TableParse.h.
|
inline |
Get the mask.
Definition at line 328 of file TableParse.h.
|
inline |
Tell if the mask is given first (i.e., before slice).
Definition at line 312 of file TableParse.h.
|
inline |
Get the expression node.
Definition at line 980 of file TableParse.h.
|
inline |
Definition at line 982 of file TableParse.h.
|
inline |
Set the column name.
Definition at line 968 of file TableParse.h.
|
inline |
Set the column name forthe mask.
Definition at line 970 of file TableParse.h.
|
private |
Definition at line 336 of file TableParse.h.
|
private |
Definition at line 337 of file TableParse.h.
|
private |
Definition at line 340 of file TableParse.h.
|
private |
Definition at line 339 of file TableParse.h.
|
private |
Definition at line 341 of file TableParse.h.
|
private |
Definition at line 338 of file TableParse.h.
|
private |
Definition at line 342 of file TableParse.h.