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

Base aggregate class determining the histogram of values in a group. More...

#include <ExprGroupAggrFuncArray.h>

Public Member Functions

 TableExprGroupHistBase (TableExprNodeRep *node, Int64 nbin, Double start, Double end)
 
virtual ~TableExprGroupHistBase ()
 
virtual MArray< Int64getArrayInt (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 Int64 getInt (const vector< TableExprId > &=vector< TableExprId >())
 
virtual Double getDouble (const vector< TableExprId > &=vector< TableExprId >())
 
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< 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 Member Functions

void add (Double value)
 Add the value to the histogram. More...
 

Private Attributes

Vector< Int64itsHist
 
Double itsStart
 
Double itsWidth
 

Additional Inherited Members

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

Detailed Description

Base aggregate class determining the histogram of values in a group.

Intended use:

Internal

Review Status

Test programs:
tExprGroup

Synopsis

Base aggregate class determining the histogram of values in a group

Definition at line 974 of file ExprGroupAggrFuncArray.h.

Constructor & Destructor Documentation

◆ TableExprGroupHistBase()

casacore::TableExprGroupHistBase::TableExprGroupHistBase ( TableExprNodeRep node,
Int64  nbin,
Double  start,
Double  end 
)
explicit

◆ ~TableExprGroupHistBase()

virtual casacore::TableExprGroupHistBase::~TableExprGroupHistBase ( )
virtual

Member Function Documentation

◆ add()

void casacore::TableExprGroupHistBase::add ( Double  value)
protected

Add the value to the histogram.

◆ getArrayInt()

virtual MArray<Int64> casacore::TableExprGroupHistBase::getArrayInt ( const vector< TableExprId > &  )
virtual

Reimplemented from casacore::TableExprGroupFuncBase.

Member Data Documentation

◆ itsHist

Vector<Int64> casacore::TableExprGroupHistBase::itsHist
private

Definition at line 985 of file ExprGroupAggrFuncArray.h.

◆ itsStart

Double casacore::TableExprGroupHistBase::itsStart
private

Definition at line 986 of file ExprGroupAggrFuncArray.h.

◆ itsWidth

Double casacore::TableExprGroupHistBase::itsWidth
private

Definition at line 987 of file ExprGroupAggrFuncArray.h.


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