IODA Bundle
Ingester::BufrAccumulator Class Reference

Accumulates provided data into a dynamically expanding Eigen Array. More...

#include <BufrAccumulator.h>

Public Member Functions

 BufrAccumulator (Eigen::Index numColumns, Eigen::Index blockSize=50000)
 
void addRow (std::vector< FloatType > &newRow)
 Add row of data to the internal data structure. More...
 
IngesterArray getData (Eigen::Index elementPos, Eigen::Index numElementsPerSet, const Channels &indices={1})
 Get an Eigen Array that contains a slice of the collected data. More...
 
void reset ()
 Start over. More...
 
Eigen::Index getNumColumns () const
 

Private Attributes

IngesterArray dataArray_
 Eigen Array that holds the accumulated data. More...
 
Eigen::Index numColumns_
 Total number of columns (width of data structure) More...
 
Eigen::Index numDataRows_
 Number of data rows of collected data. More...
 
Eigen::Index blockSize_
 Amount to allocate when we need to extend the Eigen Array. More...
 

Detailed Description

Accumulates provided data into a dynamically expanding Eigen Array.

Definition at line 19 of file BufrAccumulator.h.

Constructor & Destructor Documentation

◆ BufrAccumulator()

Ingester::BufrAccumulator::BufrAccumulator ( Eigen::Index  numColumns,
Eigen::Index  blockSize = 50000 
)
explicit
Parameters
numColumnsWidth of collected data.
blockSizeThe amount to allocate when we need to extend the Eigen Array

Definition at line 16 of file BufrAccumulator.cpp.

Member Function Documentation

◆ addRow()

void Ingester::BufrAccumulator::addRow ( std::vector< FloatType > &  newRow)

Add row of data to the internal data structure.

Parameters
newRowCollection of values to add (size must match the number of columns)

Definition at line 24 of file BufrAccumulator.cpp.

Here is the caller graph for this function:

◆ getData()

IngesterArray Ingester::BufrAccumulator::getData ( Eigen::Index  elementPos,
Eigen::Index  numElementsPerSet,
const Channels indices = {1} 
)

Get an Eigen Array that contains a slice of the collected data.

Parameters
elementPosPosition of mnemonic in the list of read mnemonics.
numElementsPerSetNumber of mnemonics in the list.
indicesindices to collect starting from the start position

Definition at line 35 of file BufrAccumulator.cpp.

Here is the caller graph for this function:

◆ getNumColumns()

Eigen::Index Ingester::BufrAccumulator::getNumColumns ( ) const
inline

Definition at line 42 of file BufrAccumulator.h.

Here is the caller graph for this function:

◆ reset()

void Ingester::BufrAccumulator::reset ( )

Start over.

Definition at line 59 of file BufrAccumulator.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ blockSize_

Eigen::Index Ingester::BufrAccumulator::blockSize_
private

Amount to allocate when we need to extend the Eigen Array.

Definition at line 55 of file BufrAccumulator.h.

◆ dataArray_

IngesterArray Ingester::BufrAccumulator::dataArray_
private

Eigen Array that holds the accumulated data.

Definition at line 46 of file BufrAccumulator.h.

◆ numColumns_

Eigen::Index Ingester::BufrAccumulator::numColumns_
private

Total number of columns (width of data structure)

Definition at line 49 of file BufrAccumulator.h.

◆ numDataRows_

Eigen::Index Ingester::BufrAccumulator::numDataRows_
private

Number of data rows of collected data.

Definition at line 52 of file BufrAccumulator.h.


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