LogPersonInformation Struct Reference

CPP API: mio::abm::LogPersonInformation Struct Reference
mio::abm::LogPersonInformation Struct Reference

Logger to log the Persons Information in the simulation. More...

#include <common_abm_loggers.h>

Inheritance diagram for mio::abm::LogPersonInformation:
Collaboration diagram for mio::abm::LogPersonInformation:

Public Types

using Type = std::vector< std::tuple< mio::abm::PersonId, mio::abm::LocationId, mio::AgeGroup > >
 

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 Persons Information in the simulation.

Member Typedef Documentation

◆ Type

Member Function Documentation

◆ log()

static Type mio::abm::LogPersonInformation::log ( const mio::abm::Simulation<> &  sim)
inlinestatic

Log the LocationInformation of the simulation.

Parameters
[in]simThe simulation of the abm.
Returns
A vector of tuples with the LocationInformation, where each tuple contains the following information:
  1. The person id.
  2. The index of the home location.
  3. The age group of the person.