21 #ifndef __SOLVER_VARIABLE_STORAGE_MINMAX_H__
22 #define __SOLVER_VARIABLE_STORAGE_MINMAX_H__
24 #include "minmax-data.h"
26 namespace Antares::Solver::Variable::R::AllYears
28 template<
class NextT = Empty>
30 template<
class NextT = Empty>
33 template<
bool OpInferior,
class NextT>
45 categoryFile = NextT::categoryFile | Variable::Category::FileLevel::allFile,
66 template<
class S,
class VCardT>
73 if (fileLevel & Category::FileLevel::id)
77 case Category::hourly:
78 InternalExportIndices<HOURS_PER_YEAR, VCardT>(report,
80 minmax.hourly.data()),
84 InternalExportIndices<DAYS_PER_YEAR, VCardT>(report,
88 case Category::weekly:
89 InternalExportIndices<WEEKS_PER_YEAR, VCardT>(report,
93 case Category::monthly:
94 InternalExportIndices<MONTHS_PER_YEAR, VCardT>(report,
95 minmax.monthly.data(),
98 case Category::annual:
99 InternalExportIndices<1, VCardT>(report, minmax.annual.data(), fileLevel);
107 case Category::hourly:
108 InternalExportValues<HOURS_PER_YEAR, VCardT>(report,
110 minmax.hourly.data()));
112 case Category::daily:
113 InternalExportValues<DAYS_PER_YEAR, VCardT>(report, minmax.daily.data());
115 case Category::weekly:
116 InternalExportValues<WEEKS_PER_YEAR, VCardT>(report, minmax.weekly.data());
118 case Category::monthly:
119 InternalExportValues<MONTHS_PER_YEAR, VCardT>(report, minmax.monthly.data());
121 case Category::annual:
122 InternalExportValues<1, VCardT>(report, minmax.annual.data());
127 NextType::template buildSurveyReport<S, VCardT>(report,
136 void merge(uint year,
const IntermediateValues& rhs);
138 template<
template<
class>
class DecoratorT>
139 Antares::Memory::Stored<double>::ConstReturnType hourlyValuesForSpatialAggregate()
const
141 return NextType::template hourlyValuesForSpatialAggregate<DecoratorT>();
148 template<u
int Size,
class VCardT>
149 static void InternalExportIndices(SurveyResults& report,
150 const MinMaxData::Data* array,
153 template<u
int Size,
class VCardT>
154 static void InternalExportValues(SurveyResults& report,
const MinMaxData::Data* array);
158 template<
class NextT>
181 template<
class NextT>
206 #include "minmax.hxx"
NextT NextType
Type of the net item in the list.
Definition: minmax.h:188
MinMaxBase< false, NextT > MinMaxImplementationType
Implementation.
Definition: minmax.h:186
static const char * Name()
Name of the filter.
Definition: minmax.h:192
@ count
The count if item in the list.
Definition: minmax.h:200
static const char * Name()
Name of the filter.
Definition: minmax.h:169
NextT NextType
Type of the net item in the list.
Definition: minmax.h:165
MinMaxBase< true, NextT > MinMaxImplementationType
Implementation.
Definition: minmax.h:163
@ count
The count if item in the list.
Definition: minmax.h:177
Class utility for building CSV results files.
Definition: surveyresults.h:41
NextT NextType
Type of the net item in the list.
Definition: minmax.h:38
static const char * Name()
Name of the filter.
Definition: minmax.h:49
@ count
The count if item in the list.
Definition: minmax.h:43