OpenM++ runtime library (libopenm)
openm::OutputTableWriter Class Reference
Inheritance diagram for openm::OutputTableWriter:
Collaboration diagram for openm::OutputTableWriter:

Public Member Functions

 OutputTableWriter (int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore, int i_subCount, const char *i_doubleFormat="", bool i_isSparse=false, double i_nullValue=FLT_MIN)
 
size_t sizeOf (void) const noexcept override
 return total number of values for each accumulator More...
 
int expressionCount (void) const noexcept override
 return number of output aggregated expressions More...
 
void writeAccumulator (IDbExec *i_dbExec, int i_subId, int i_accId, size_t i_size, const double *i_valueArr) override
 write output table accumulator values More...
 
void writeAllExpressions (IDbExec *i_dbExec) override
 write all output table values: aggregate sub-values using table expressions More...
 
void digestOutput (IDbExec *i_dbExec) override
 calculate output table values digest and store only single copy of output values More...
 
virtual size_t sizeOf (void) const noexcept=0
 return total number of values for each accumulator More...
 
virtual int expressionCount (void) const noexcept=0
 return number of output aggregated expressions More...
 
virtual void writeAccumulator (IDbExec *i_dbExec, int i_subId, int i_accId, size_t i_size, const double *i_valueArr)=0
 write output table accumulator values More...
 
virtual void writeAllExpressions (IDbExec *i_dbExec)=0
 write all output table values: aggregate sub-values using table expressions More...
 
virtual void digestOutput (IDbExec *i_dbExec)=0
 calculate output table values digest and store only single copy of output values More...
 

Additional Inherited Members

- Static Public Member Functions inherited from openm::IOutputTableWriter
static IOutputTableWritercreate (int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore, int i_subCount, bool i_isSparse=false, double i_nullValue=FLT_MIN)
 output table writer factory to write accumulators
 
static IOutputTableWritercreate (int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore, int i_subCount, const char *i_doubleFormat="")
 output table writer factory to write expressions
 
static size_t sizeOf (const MetaHolder *i_metaStore, int i_tableId)
 return total number of values for each accumulator
 

Member Function Documentation

◆ digestOutput()

void OutputTableWriter::digestOutput ( IDbExec i_dbExec)
overridevirtual

calculate output table values digest and store only single copy of output values

Implements openm::IOutputTableWriter.

◆ expressionCount()

int openm::OutputTableWriter::expressionCount ( void  ) const
inlineoverridevirtualnoexcept

return number of output aggregated expressions

Implements openm::IOutputTableWriter.

◆ sizeOf()

size_t openm::OutputTableWriter::sizeOf ( void  ) const
inlineoverridevirtualnoexcept

return total number of values for each accumulator

Implements openm::IOutputTableWriter.

◆ writeAccumulator()

void OutputTableWriter::writeAccumulator ( IDbExec i_dbExec,
int  i_subId,
int  i_accId,
size_t  i_size,
const double *  i_valueArr 
)
overridevirtual

write output table accumulator values

Parameters
[in]i_dbExecdatabase connection
[in]i_subIdsub-value index
[in]i_sizenumber of values for each accumulator
[in]i_accIdaccumulator number for the output table (zero based)
[in]i_valueArrarray of accumulator values

Implements openm::IOutputTableWriter.

◆ writeAllExpressions()

void OutputTableWriter::writeAllExpressions ( IDbExec i_dbExec)
overridevirtual

write all output table values: aggregate sub-values using table expressions

Implements openm::IOutputTableWriter.


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