Class for streaming SensitivityRecords from csv file. More...
#include <orea/engine/sensitivityinmemorystream.hpp>
Public Member Functions | |
SensitivityInMemoryStream () | |
Default constructor. More... | |
template<class Iter > | |
SensitivityInMemoryStream (Iter begin, Iter end) | |
Constructor from set of sensitivity records. More... | |
SensitivityRecord | next () override |
Returns the next SensitivityRecord in the stream. More... | |
void | reset () override |
Resets the stream so that SensitivityRecords can be streamed again. More... | |
void | add (const SensitivityRecord &sr) |
Public Member Functions inherited from SensitivityStream | |
virtual | ~SensitivityStream () |
Destructor. More... | |
virtual SensitivityRecord | next ()=0 |
Returns the next SensitivityRecord in the stream. More... | |
virtual void | reset ()=0 |
Resets the stream so that SensitivityRecord objects can be streamed again. More... | |
Private Attributes | |
std::vector< SensitivityRecord > | records_ |
Container of records. More... | |
std::vector< SensitivityRecord >::iterator | itCurrent_ |
Iterator to current element. More... | |
Class for streaming SensitivityRecords from csv file.
Definition at line 33 of file sensitivityinmemorystream.hpp.
Default constructor.
Definition at line 27 of file sensitivityinmemorystream.cpp.
SensitivityInMemoryStream | ( | Iter | begin, |
Iter | end | ||
) |
Constructor from set of sensitivity records.
Definition at line 59 of file sensitivityinmemorystream.hpp.
|
overridevirtual |
Returns the next SensitivityRecord in the stream.
Implements SensitivityStream.
Definition at line 29 of file sensitivityinmemorystream.cpp.
|
overridevirtual |
Resets the stream so that SensitivityRecords can be streamed again.
Implements SensitivityStream.
Definition at line 38 of file sensitivityinmemorystream.cpp.
void add | ( | const SensitivityRecord & | sr | ) |
Add a record to the in-memory collection.
Definition at line 43 of file sensitivityinmemorystream.cpp.
|
private |
Container of records.
Definition at line 53 of file sensitivityinmemorystream.hpp.
|
private |
Iterator to current element.
Definition at line 55 of file sensitivityinmemorystream.hpp.