53 virtual void Read() = 0;
61 std::map<unsigned int, stride::Person*>
m_people;
64 std::vector<std::tuple<unsigned int, unsigned int, double>>
m_commutes;
void AddCommutes(GeoGrid &geoGrid)
Add the commutes that were found to their respective Locations symmetrically.
GeoGridReader(std::unique_ptr< std::istream > inputStream, stride::Population *pop)
Parametrized constructor.
stride::Population * m_population
Population to use in the GeoGrid may be nullptr.
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
Key Data structure: container for (a) all individuals in the population (b) the ContactPoolSys wchich...
Namespace for the geographic and demograhic classes.
std::vector< std::tuple< unsigned int, unsigned int, double > > m_commutes
std::unique_ptr< std::istream > m_inputStream
File to read.
virtual void Read()=0
Perform the actual read and return the created GeoGrid.
An abstract base class for creating a GeoGrid that was read from a file, can be implemented using mul...
virtual ~GeoGridReader()=default
Default destructor.
std::map< unsigned int, stride::Person * > m_people
< Store the persons (id->person) that were found while loping over the ContactPools.
Namespace for the simulator and related classes.
GeoGridReader & operator=(const GeoGridReader &)=delete
No copy assignment.