Stride Reference Manual  1.0
stride::Population Class Reference

Container for persons in population. More...

#include <Population.h>

Collaboration diagram for stride::Population:
Collaboration graph

Public Types

using PersonType = Simulator::PersonType
 
using PlannerType = SimplePlanner< PersonType >
 
using VectorType = vector< PersonType >
 
using iterator = PopulationIterator
 
using const_iterator = ConstPopulationIterator
 

Public Member Functions

 Population ()=default
 
unsigned int getInfectedCount () const
 Get the cumulative number of cases. More...
 
double getFractionInfected () const
 
size_t size () const
 
template<typename BeliefPolicy >
unsigned int getAdoptedCount () const
 
PopulationIterator begin ()
 
PopulationIterator end ()
 
ConstPopulationIterator begin () const
 
ConstPopulationIterator end () const
 

Public Attributes

VectorType m_original
 
PlannerType m_visitors
 

Detailed Description

Container for persons in population.

Definition at line 132 of file Population.h.

Member Typedef Documentation

Definition at line 138 of file Population.h.

Definition at line 167 of file Population.h.

Constructor & Destructor Documentation

stride::Population::Population ( )
default

Member Function Documentation

unsigned int Population::getInfectedCount ( ) const

Get the cumulative number of cases.

Definition at line 11 of file Population.cpp.

double stride::Population::getFractionInfected ( ) const
inline

Definition at line 143 of file Population.h.

size_t stride::Population::size ( ) const
inline

Definition at line 147 of file Population.h.

template<typename BeliefPolicy >
unsigned int stride::Population::getAdoptedCount ( ) const

Definition at line 194 of file Population.h.

PopulationIterator stride::Population::begin ( )
PopulationIterator stride::Population::end ( )
ConstPopulationIterator stride::Population::begin ( ) const
ConstPopulationIterator stride::Population::end ( ) const

Member Data Documentation

VectorType stride::Population::m_original

Definition at line 163 of file Population.h.

Referenced by stride::Simulator::sendNewTravellers().

PlannerType stride::Population::m_visitors

Definition at line 164 of file Population.h.


The documentation for this class was generated from the following files: