23#include "antares/study/parts/load/prepro.h"
24#include "antares/study/parts/parts.h"
26namespace Antares::Data
30 inline bool operator()(
const Area* s1,
const Area* s2)
const
38 assert(i <
areas.size() and
"Index out of bounds");
44 assert(i <
areas.size() and
"Index out of bounds");
48template<enum TimeSeriesType T>
54 return &(load.
prepro->xcast);
56 return &(solar.
prepro->xcast);
61 case timeSeriesThermal:
67template<enum TimeSeriesType T>
73 return &(load.
prepro->xcast);
75 return &(solar.
prepro->xcast);
80 case timeSeriesThermal:
86template<
class PredicateT>
89 auto end =
areas.end();
90 for (
auto i =
areas.begin(); i != end; ++i)
92 auto& area = *(i->second);
97template<
class PredicateT>
100 auto end =
areas.cend();
101 for (
auto i =
areas.cbegin(); i != end; ++i)
103 auto& area = *(i->second);
110 return (uint)
areas.size();
115 return areas.begin();
120 return areas.begin();
125 return areas.begin();
145 return areas.rbegin();
150 return areas.rbegin();
Area::Map areas
All areas in the list.
Definition area.h:667
Area::Map::const_reverse_iterator const_reverse_iterator
A const iterator.
Definition area.h:375
Area * operator[](uint i)
Get an area from its index.
Definition area.hxx:36
Area::Map::reverse_iterator reverse_iterator
An iterator.
Definition area.h:373
Area::Map::const_iterator const_iterator
A const iterator.
Definition area.h:371
std::vector< Area * > byIndex
All areas by their index.
Definition area.h:665
Area::Map::iterator iterator
An iterator.
Definition area.h:369
uint size() const
Get the total number of areas.
Definition area.hxx:108
void each(const PredicateT &predicate)
Iterate through all areas.
Definition area.hxx:87
Definition for a single area.
Definition area.h:52
AreaName name
Name of the area.
Definition area.h:213
XCast * xcastData()
Get the XCast data according a given time-series type.
Definition area.hxx:49
Wind::Container wind
Wind time-series and Wind prepro data.
Definition area.h:258
std::unique_ptr< Data::Load::Prepro > prepro
Data for the pre-processor.
Definition container.h:66
std::unique_ptr< Data::Solar::Prepro > prepro
Data for the pre-processor.
Definition container.h:63
std::unique_ptr< Data::Wind::Prepro > prepro
Data for the pre-processor.
Definition container.h:63