ProtectionEvent Struct Reference

CPP API: mio::abm::ProtectionEvent Struct Reference
mio::abm::ProtectionEvent Struct Reference

A tuple of ProtectionType and #TimePoint. More...

#include <protection_event.h>

Collaboration diagram for mio::abm::ProtectionEvent:

Public Member Functions

auto default_serialize ()
 This method is used by the default serialization feature. More...
 
 ProtectionEvent (ProtectionType exposure, TimePoint t)
 

Public Attributes

TimePoint time
 
ProtectionType type
 

Detailed Description

A tuple of ProtectionType and #TimePoint.

The #TimePoint describes the time of exposure and, in case of a vaccine, the time of administration of the vaccine.

Constructor & Destructor Documentation

◆ ProtectionEvent()

mio::abm::ProtectionEvent::ProtectionEvent ( ProtectionType  exposure,
TimePoint  t 
)
inline

Member Function Documentation

◆ default_serialize()

auto mio::abm::ProtectionEvent::default_serialize ( )
inline

This method is used by the default serialization feature.

Member Data Documentation

◆ time

TimePoint mio::abm::ProtectionEvent::time

◆ type

ProtectionType mio::abm::ProtectionEvent::type