31 #include <boost/property_tree/ptree_fwd.hpp> 33 #include <spdlog/spdlog.h> 51 static std::shared_ptr<Population> Create(
const boost::property_tree::ptree& config,
util::RnMan rnMan,
52 std::shared_ptr<spdlog::logger> strideLogger =
nullptr);
55 static std::shared_ptr<Population> Create(
const std::string& configString,
util::RnMan rnMan,
56 std::shared_ptr<spdlog::logger> stride_logger =
nullptr);
59 static std::shared_ptr<Population> Create();
63 Person* CreatePerson(
unsigned int id,
double age,
unsigned int householdId,
unsigned int k12SchoolId,
64 unsigned int collegeId,
unsigned int workId,
unsigned int primaryCommunityId,
65 unsigned int secondaryCommunityId);
68 unsigned int GetInfectedCount()
const;
Header file for the Person class.
Container for the contact pools of various type (household, work, ...).
Header for the core ContactPool class.
const geopop::GeoGrid & CRefGeoGrid() const
Get the GeoGrid associated with this population (may be a nullptr).
const ContactPoolSys & CRefPoolSys() const
The ContactPoolSys of the simulator.
Interface and implementation for SegmentedVector class.
geopop::GeoGrid & RefGeoGrid()
Reference the GeoGrid associated with this population (may be a nullptr).
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
ContactPoolSys & RefPoolSys()
Reference the ContactPoolSys of the Population.
Key Data structure: container for (a) all individuals in the population (b) the ContactPoolSys wchich...
Container that stores objects "almost contiguously" (in a chain of blocks) and guarantees that pointe...
Definition of ContactPool Id Type.
std::shared_ptr< spdlog::logger > m_contact_logger
Logger for contact/transmission.
geopop::GeoGrid m_geo_grid
Associated may be nullptr.
ContactPoolSys contains for each of the type of pools (Household, K12School, ...) a vector of with al...
std::shared_ptr< spdlog::logger > & RefContactLogger()
Return the contactlogger.
ContactPoolSys m_pool_sys
The global .
Store and handle person data.
Namespace for the simulator and related classes.