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

Class representing all keys in the groupby clause. More...

#include <ExprGroup.h>

Public Member Functions

 TableExprGroupKeySet (const vector< TableExprNode > &nodes)
 Form the object from the given groupby nodes. More...
 
void addKey (TableExprNodeRep::NodeDataType dtype)
 Add a key to end the set. More...
 
void fill (const vector< TableExprNode > &nodes, const TableExprId &id)
 Fill the keys with the values from the nodes for this rowid. More...
 
bool operator== (const TableExprGroupKeySet &) const
 Compare all keys in the set. More...
 
bool operator< (const TableExprGroupKeySet &) const
 

Private Attributes

vector< TableExprGroupKeyitsKeys
 

Detailed Description

Class representing all keys in the groupby clause.

Intended use:

Internal

Review Status

Test programs:
tTableGram

Synopsis

The GROUPBY clause consists of one or more keys, each being a scalar TaQL expression with an arbitrary data type. This class contains a set of TableExprGroupKey objects, each containing the value of a key for a particular table row.
It contains comparison functions to make it possible to use them in a std::map object to map the groupby keyset to a group.

Definition at line 105 of file ExprGroup.h.

Constructor & Destructor Documentation

◆ TableExprGroupKeySet()

casacore::TableExprGroupKeySet::TableExprGroupKeySet ( const vector< TableExprNode > &  nodes)

Form the object from the given groupby nodes.

Member Function Documentation

◆ addKey()

void casacore::TableExprGroupKeySet::addKey ( TableExprNodeRep::NodeDataType  dtype)
inline

Add a key to end the set.

Definition at line 112 of file ExprGroup.h.

References itsKeys.

◆ fill()

void casacore::TableExprGroupKeySet::fill ( const vector< TableExprNode > &  nodes,
const TableExprId id 
)

Fill the keys with the values from the nodes for this rowid.

◆ operator<()

bool casacore::TableExprGroupKeySet::operator< ( const TableExprGroupKeySet ) const

◆ operator==()

bool casacore::TableExprGroupKeySet::operator== ( const TableExprGroupKeySet ) const

Compare all keys in the set.

The keyset is compared in order of key, thus the first key defines the major ordering.

Member Data Documentation

◆ itsKeys

vector<TableExprGroupKey> casacore::TableExprGroupKeySet::itsKeys
private

Definition at line 125 of file ExprGroup.h.

Referenced by addKey().


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