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
 
int expressionCount (void) const noexcept override
 return number of output aggregated expressions
 
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
 
void digestOutput (IDbExec *i_dbExec) override
 calculate output table values digest and store only single copy of output values
 

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

◆ 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.


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