21 #ifndef __ANTARES_LIBS_STUDY_PROGRESSION_PROGRESSION_HXX__
22 #define __ANTARES_LIBS_STUDY_PROGRESSION_PROGRESSION_HXX__
24 namespace Antares::Solver
26 inline Progression::Meter::Meter():
31 inline void Progression::Meter::taskCount(uint n)
36 inline void Progression::add(Section section,
int nbTicks)
38 add((uint)-1, section, nbTicks);
41 inline void Progression::setNumberOfParallelYears(uint nb)
43 pProgressMeter.nbParallelYears = nb;
44 pProgressMeter.logsContainer.resize(nb);
47 inline Progression::Part& Progression::begin(uint year, Progression::Section section)
50 Part& part = pProgressMeter.parts[year][section];
54 part.lastTickCount = 0;
55 pProgressMeter.mutex.lock();
56 pProgressMeter.inUse.push_front(&part);
57 pProgressMeter.mutex.unlock();
61 inline const char* Progression::SectionToCStr(Section section)
63 static const char*
const sectName[sectMax] = {
"mc",
71 assert((uint)section < (uint)sectMax);
72 return sectName[section];