LogLocationInformation Struct Reference
|
CPP API
|
mio::abm::LogLocationInformation Struct Reference
Logger to log the LocationInformation of the simulation. More...
#include <common_abm_loggers.h>
Inheritance diagram for mio::abm::LogLocationInformation:
Collaboration diagram for mio::abm::LogLocationInformation:
Public Types | |
| using | Type = std::vector< std::tuple< mio::abm::LocationId, mio::abm::LocationType, mio::geo::GeographicalLocation, size_t, int > > |
Static Public Member Functions | |
| static Type | log (const mio::abm::Simulation<> &sim) |
| Log the LocationInformation of the simulation. More... | |
Additional Inherited Members | |
Public Member Functions inherited from mio::LogOnce | |
| template<class T > | |
| bool | should_log (const T &) |
| For any type T, returns true on the first call only, and false thereafter. More... | |
Public Attributes inherited from mio::LogOnce | |
| bool | was_logged = false |
| Remember if this Logger was logged already. More... | |
Detailed Description
Logger to log the LocationInformation of the simulation.
Member Typedef Documentation
◆ Type
| using mio::abm::LogLocationInformation::Type = std::vector< std::tuple<mio::abm::LocationId, mio::abm::LocationType, mio::geo::GeographicalLocation, size_t, int> > |
Member Function Documentation
◆ log()
|
inlinestatic |
Log the LocationInformation of the simulation.
- Parameters
-
[in] sim The simulation of the abm.
- Returns
- A vector of tuples with the LocationInformation, where each tuple contains the following information:
- The index of the location.
- The type of the location.
- The geographical location of the location.
- The number of cells in the location.
- The capacity of the location.
Generated by
Public Member Functions inherited from