Logo
Reference manual - version orea_version
Public Member Functions | List of all members
InMemoryAggregationScenarioData Class Reference

A concrete in memory implementation of AggregationScenarioData. More...

#include <orea/scenario/aggregationscenariodata.hpp>

+ Inheritance diagram for InMemoryAggregationScenarioData:

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.
 
AggregationScenarioDataoperator= (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...
 

Detailed Description

A concrete in memory implementation of AggregationScenarioData.

Member Function Documentation

◆ get()

Real get ( Size  dateIndex,
Size  sampleIndex,
const AggregationScenarioDataType &  type,
const string &  qualifier = "" 
) const
overridevirtual

might throw (the underlying's container exception), if type is not known

Implements AggregationScenarioData.