LogInfectionState Struct Reference

CPP API: mio::abm::LogInfectionState Struct Reference
mio::abm::LogInfectionState Struct Reference

Logger to log the TimeSeries of the number of Persons in an InfectionState. More...

#include <common_abm_loggers.h>

Inheritance diagram for mio::abm::LogInfectionState:
Collaboration diagram for mio::abm::LogInfectionState:

Public Types

using Type = std::pair< mio::abm::TimePoint, Eigen::VectorX< ScalarType > >
 

Static Public Member Functions

static Type log (const mio::abm::Simulation<> &sim)
 Log the TimeSeries of the number of Persons in an InfectionState. More...
 

Additional Inherited Members

- Public Member Functions inherited from mio::LogAlways
template<class T >
constexpr bool should_log (const T &)
 Always returns true, for any type T. More...
 

Detailed Description

Logger to log the TimeSeries of the number of Persons in an InfectionState.

Member Typedef Documentation

◆ Type

Member Function Documentation

◆ log()

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

Log the TimeSeries of the number of Persons in an InfectionState.

Parameters
[in]simThe simulation of the abm.
Returns
A pair of the TimePoint and the TimeSeries of the number of Persons in an InfectionState.