Accumulates provided data into a dynamically expanding Eigen Array.
More...
#include <BufrAccumulator.h>
Accumulates provided data into a dynamically expanding Eigen Array.
Definition at line 19 of file BufrAccumulator.h.
◆ BufrAccumulator()
Ingester::BufrAccumulator::BufrAccumulator |
( |
Eigen::Index |
numColumns, |
|
|
Eigen::Index |
blockSize = 50000 |
|
) |
| |
|
explicit |
- Parameters
-
numColumns | Width of collected data. |
blockSize | The amount to allocate when we need to extend the Eigen Array |
Definition at line 16 of file BufrAccumulator.cpp.
◆ addRow()
void Ingester::BufrAccumulator::addRow |
( |
std::vector< FloatType > & |
newRow | ) |
|
Add row of data to the internal data structure.
- Parameters
-
newRow | Collection of values to add (size must match the number of columns) |
Definition at line 24 of file BufrAccumulator.cpp.
◆ 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
-
elementPos | Position of mnemonic in the list of read mnemonics. |
numElementsPerSet | Number of mnemonics in the list. |
indices | indices to collect starting from the start position |
Definition at line 35 of file BufrAccumulator.cpp.
◆ getNumColumns()
Eigen::Index Ingester::BufrAccumulator::getNumColumns |
( |
| ) |
const |
|
inline |
◆ reset()
void Ingester::BufrAccumulator::reset |
( |
| ) |
|
◆ blockSize_
Eigen::Index Ingester::BufrAccumulator::blockSize_ |
|
private |
◆ dataArray_
◆ 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 |
The documentation for this class was generated from the following files: