Logo
Reference manual - version orea_version
SensitivityInMemoryStream Class Reference

Class for streaming SensitivityRecords from csv file. More...

#include <orea/engine/sensitivityinmemorystream.hpp>

Inheritance diagram for SensitivityInMemoryStream:

Public Member Functions

 SensitivityInMemoryStream ()
 Default constructor.
template<class Iter>
 SensitivityInMemoryStream (Iter begin, Iter end)
 Constructor from set of sensitivity records.
SensitivityRecord next () override
 Returns the next SensitivityRecord in the stream.
void reset () override
 Resets the stream so that SensitivityRecords can be streamed again.
void add (const SensitivityRecord &sr)
Public Member Functions inherited from SensitivityStream
virtual ~SensitivityStream ()
 Destructor.

Detailed Description

Class for streaming SensitivityRecords from csv file.

Member Function Documentation

◆ next()

SensitivityRecord next ( )
overridevirtual

Returns the next SensitivityRecord in the stream.

Implements SensitivityStream.

◆ reset()

void reset ( )
overridevirtual

Resets the stream so that SensitivityRecords can be streamed again.

Implements SensitivityStream.

◆ add()

void add ( const SensitivityRecord & sr)

Add a record to the in-memory collection.

Warning
this causes reset() to be called. In other words, after any call to add, a call to next() will start at the beginning again.