12 unsigned int total = 0;
13 for (
const auto& p : *
this) {
14 const auto& h = p.getHealth();
15 total += h.isInfected() || h.isRecovered();
20 #define PopulationBeginEnd(mod, type) \ 21 type Population::begin() mod { \ 22 type it = type(*this, -1); \ 26 type Population::end() mod { \ 27 return type(*this, 0, true, m_visitors.days()); \ 39 if (m_in_planner)
return *((*m_day_iter->get())[m_index]);
40 else return m_pop.m_original[m_index];
Time Dependent Person DataType.
unsigned int getInfectedCount() const
Get the cumulative number of cases.
Header file for the core Population class.
Container for persons in population.
#define PopulationBeginEnd(mod, type)