casacore
Public Member Functions | Private Attributes | List of all members
casacore::TableParseUpdate Class Reference

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 StringcolumnName () const
 Get the column name. More...
 
const StringcolumnNameMask () 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...
 
TableExprNodeIndexindexPtr () const
 Get the pointer to the indices. More...
 
const TableExprNodeindexNode () const
 Get the index expression node. More...
 
const TableExprNodenode () const
 Get the expression node. More...
 
TableExprNodenode ()
 
const TableExprNodemask () 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
 
TableExprNodeIndexindexPtr_p
 
TableExprNode indexNode_p
 
TableExprNode mask_p
 
TableExprNode node_p
 

Detailed Description

Helper class for updates in TableParse.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Etymology

TableParseUpdate holds a column name, optional indices, optional mask, and an update expression.

Synopsis

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 270 of file TableParse.h.

Constructor & Destructor Documentation

◆ TableParseUpdate() [1/4]

casacore::TableParseUpdate::TableParseUpdate ( )
inline

Definition at line 273 of file TableParse.h.

◆ TableParseUpdate() [2/4]

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.

◆ TableParseUpdate() [3/4]

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.

◆ TableParseUpdate() [4/4]

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.

◆ ~TableParseUpdate()

casacore::TableParseUpdate::~TableParseUpdate ( )

Member Function Documentation

◆ adaptUnit()

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 1032 of file TableParse.h.

References casacore::TableExprNode::adaptUnit(), and node_p.

◆ columnName()

const String & casacore::TableParseUpdate::columnName ( ) const
inline

Get the column name.

Definition at line 1020 of file TableParse.h.

References columnName_p.

◆ columnNameMask()

const String & casacore::TableParseUpdate::columnNameMask ( ) const
inline

Get the possible column name for the mask.

Definition at line 1022 of file TableParse.h.

References columnNameMask_p.

◆ handleIndices()

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.

◆ indexNode()

const TableExprNode & casacore::TableParseUpdate::indexNode ( ) const
inline

Get the index expression node.

Definition at line 1026 of file TableParse.h.

References indexNode_p.

◆ indexPtr()

TableExprNodeIndex * casacore::TableParseUpdate::indexPtr ( ) const
inline

Get the pointer to the indices.

Definition at line 1024 of file TableParse.h.

References indexPtr_p.

◆ mask()

const TableExprNode& casacore::TableParseUpdate::mask ( ) const
inline

Get the mask.

Definition at line 335 of file TableParse.h.

References mask_p.

◆ maskFirst()

Bool casacore::TableParseUpdate::maskFirst ( ) const
inline

Tell if the mask is given first (i.e., before slice).

Definition at line 319 of file TableParse.h.

References maskFirst_p.

◆ node() [1/2]

TableExprNode & casacore::TableParseUpdate::node ( )
inline

Definition at line 1030 of file TableParse.h.

References node_p.

◆ node() [2/2]

const TableExprNode & casacore::TableParseUpdate::node ( ) const
inline

Get the expression node.

Definition at line 1028 of file TableParse.h.

References node_p.

◆ setColumnName()

void casacore::TableParseUpdate::setColumnName ( const String name)
inline

Set the column name.

Definition at line 1016 of file TableParse.h.

References columnName_p.

◆ setColumnNameMask()

void casacore::TableParseUpdate::setColumnNameMask ( const String name)
inline

Set the column name forthe mask.

Definition at line 1018 of file TableParse.h.

References columnNameMask_p.

Member Data Documentation

◆ columnName_p

String casacore::TableParseUpdate::columnName_p
private

Definition at line 343 of file TableParse.h.

Referenced by columnName(), and setColumnName().

◆ columnNameMask_p

String casacore::TableParseUpdate::columnNameMask_p
private

Definition at line 344 of file TableParse.h.

Referenced by columnNameMask(), and setColumnNameMask().

◆ indexNode_p

TableExprNode casacore::TableParseUpdate::indexNode_p
private

Definition at line 347 of file TableParse.h.

Referenced by indexNode().

◆ indexPtr_p

TableExprNodeIndex* casacore::TableParseUpdate::indexPtr_p
private

Definition at line 346 of file TableParse.h.

Referenced by indexPtr().

◆ mask_p

TableExprNode casacore::TableParseUpdate::mask_p
private

Definition at line 348 of file TableParse.h.

Referenced by mask().

◆ maskFirst_p

Bool casacore::TableParseUpdate::maskFirst_p
private

Definition at line 345 of file TableParse.h.

Referenced by maskFirst().

◆ node_p

TableExprNode casacore::TableParseUpdate::node_p
private

Definition at line 349 of file TableParse.h.

Referenced by adaptUnit(), and node().


The documentation for this class was generated from the following file: