23 #include "antares/study/parts/load/prepro.h"
24 #include "antares/study/parts/parts.h"
26 namespace 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");
48 template<enum TimeSeriesType T>
54 return &(load.
prepro->xcast);
56 return &(solar.
prepro->xcast);
61 case timeSeriesThermal:
67 template<enum TimeSeriesType T>
73 return &(load.
prepro->xcast);
75 return &(solar.
prepro->xcast);
80 case timeSeriesThermal:
86 template<
class PredicateT>
89 auto end =
areas.end();
90 for (
auto i =
areas.begin(); i != end; ++i)
92 auto& area = *(i->second);
97 template<
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:668
Area::Map::const_reverse_iterator const_reverse_iterator
A const iterator.
Definition: area.h:374
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:372
Area::Map::const_iterator const_iterator
A const iterator.
Definition: area.h:370
std::vector< Area * > byIndex
All areas by their index.
Definition: area.h:666
Area::Map::iterator iterator
An iterator.
Definition: area.h:368
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:51
AreaName name
Name of the area.
Definition: area.h:212
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:257
std::unique_ptr< Data::Load::Prepro > prepro
Data for the pre-processor.
Definition: container.h:62
std::unique_ptr< Data::Solar::Prepro > prepro
Data for the pre-processor.
Definition: container.h:59
std::unique_ptr< Data::Wind::Prepro > prepro
Data for the pre-processor.
Definition: container.h:59