casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
casacore::TableExprGroupFuncInt Class Reference

Abstract base class for aggregate functions giving an integer scalar. More...

#include <ExprGroup.h>

Inheritance diagram for casacore::TableExprGroupFuncInt:
casacore::TableExprGroupFuncBase casacore::TableExprGroupArrayNFalse casacore::TableExprGroupArrayNTrue casacore::TableExprGroupCount casacore::TableExprGroupCountAll casacore::TableExprGroupMaxArrayInt casacore::TableExprGroupMaxInt casacore::TableExprGroupMinArrayInt casacore::TableExprGroupMinInt casacore::TableExprGroupNFalse casacore::TableExprGroupNTrue casacore::TableExprGroupProductArrayInt casacore::TableExprGroupProductInt casacore::TableExprGroupSumArrayInt casacore::TableExprGroupSumInt casacore::TableExprGroupSumSqrArrayInt casacore::TableExprGroupSumSqrInt

Public Member Functions

 TableExprGroupFuncInt (TableExprNodeRep *node, Int64 initValue=0)
 
virtual ~TableExprGroupFuncInt ()
 
virtual Int64 getInt (const vector< TableExprId > &)
 
virtual Double getDouble (const vector< TableExprId > &)
 
- Public Member Functions inherited from casacore::TableExprGroupFuncBase
 TableExprGroupFuncBase (TableExprNodeRep *node)
 Construct from the TaQL aggregation node. More...
 
virtual ~TableExprGroupFuncBase ()
 
virtual Bool isLazy () const
 Does the aggregate function use lazy semantics? The default implementation returns False. More...
 
uInt seqnr () const
 Get the function's sequence nr. More...
 
void setSeqnr (uInt seqnr)
 Set the function's sequence nr. More...
 
virtual void apply (const TableExprId &id)=0
 Get the operand's value for the given row and apply it to the aggregation. More...
 
virtual void finish ()
 If needed, finish the aggregation. More...
 
virtual CountedPtr< vector
< TableExprId > > 
getIds () const
 Get the assembled TableExprIds of a group. More...
 
virtual Bool getBool (const vector< TableExprId > &=vector< TableExprId >())
 Get the aggregated value. More...
 
virtual DComplex getDComplex (const vector< TableExprId > &=vector< TableExprId >())
 
virtual MVTime getDate (const vector< TableExprId > &=vector< TableExprId >())
 
virtual String getString (const vector< TableExprId > &=vector< TableExprId >())
 
virtual MArray< BoolgetArrayBool (const vector< TableExprId > &=vector< TableExprId >())
 
virtual MArray< Int64getArrayInt (const vector< TableExprId > &=vector< TableExprId >())
 
virtual MArray< DoublegetArrayDouble (const vector< TableExprId > &=vector< TableExprId >())
 
virtual MArray< DComplex > getArrayDComplex (const vector< TableExprId > &=vector< TableExprId >())
 
virtual MArray< MVTimegetArrayDate (const vector< TableExprId > &=vector< TableExprId >())
 
virtual MArray< StringgetArrayString (const vector< TableExprId > &=vector< TableExprId >())
 

Protected Attributes

Int64 itsValue
 
- Protected Attributes inherited from casacore::TableExprGroupFuncBase
TableExprNodeRepitsNode
 
TableExprNodeRepitsOperand
 
uInt itsSeqnr
 

Detailed Description

Abstract base class for aggregate functions giving an integer scalar.

Intended use:

Internal

Review Status

Test programs:
tExprGroup

Synopsis

This class is derived from TableExprGroupFuncBase and acts as the abstract base class for aggregate functions resulting in an integer scalar.
Derived classes can use itsValue to contain the aggregated value. It that case they do not need to implement the get function.

Definition at line 498 of file ExprGroup.h.

Constructor & Destructor Documentation

casacore::TableExprGroupFuncInt::TableExprGroupFuncInt ( TableExprNodeRep node,
Int64  initValue = 0 
)
inlineexplicit

Definition at line 501 of file ExprGroup.h.

virtual casacore::TableExprGroupFuncInt::~TableExprGroupFuncInt ( )
virtual

Member Function Documentation

virtual Double casacore::TableExprGroupFuncInt::getDouble ( const vector< TableExprId > &  )
virtual

Reimplemented from casacore::TableExprGroupFuncBase.

virtual Int64 casacore::TableExprGroupFuncInt::getInt ( const vector< TableExprId > &  )
virtual

Reimplemented from casacore::TableExprGroupFuncBase.

Member Data Documentation

Int64 casacore::TableExprGroupFuncInt::itsValue
protected

Definition at line 509 of file ExprGroup.h.

Referenced by casacore::TableExprGroupCountAll::setResult().


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