A concrete in memory implementation of AggregationScenarioData. More...
#include <orea/scenario/aggregationscenariodata.hpp>
Public Member Functions | |
InMemoryAggregationScenarioData (Size dimDates, Size dimSamples) | |
Size | dimDates () const override |
Return the length of each dimension. | |
Size | dimSamples () const override |
bool | has (const AggregationScenarioDataType &type, const string &qualifier="") const override |
Check whether data is available for the given type. | |
Real | get (Size dateIndex, Size sampleIndex, const AggregationScenarioDataType &type, const string &qualifier="") const override |
std::vector< std::pair< AggregationScenarioDataType, std::string > > | keys () const override |
void | set (Size dateIndex, Size sampleIndex, Real value, const AggregationScenarioDataType &type, const string &qualifier="") override |
Set a value in the cube. | |
Public Member Functions inherited from AggregationScenarioData | |
AggregationScenarioData () | |
default ctor | |
AggregationScenarioData (AggregationScenarioData &)=delete | |
Do not allow copying. | |
AggregationScenarioData & | operator= (AggregationScenarioData const &)=delete |
virtual | ~AggregationScenarioData () |
dtor | |
virtual void | set (Real value, const AggregationScenarioDataType &type, const string &qualifier="") |
Set a value in the cube, assumes normal traversal of the cube (dates then samples) | |
virtual void | next () |
Go to the next point on the cube. More... | |
A concrete in memory implementation of AggregationScenarioData.
|
overridevirtual |
might throw (the underlying's container exception), if type is not known
Implements AggregationScenarioData.