Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
hgps::SyncMessage Class Reference

Scenario data synchronisation message data type. More...

#include <sync_message.h>

Inheritance diagram for hgps::SyncMessage:
[legend]

Public Member Functions

 SyncMessage (const int run, const int time)
 Initialises a new instance of the SyncMessage class.
 SyncMessage (const SyncMessage &)=delete
SyncMessage & operator= (const SyncMessage &)=delete
virtual ~SyncMessage ()=default
 Destroys a SyncMessage instance.
int run () const noexcept
 Gets the Simulation run number.
int time () const noexcept
 Gets the Simulation time.

Protected Member Functions

 SyncMessage (SyncMessage &&other)=default
 Moves the target of other to the target of *this.
SyncMessage & operator= (SyncMessage &&other)=default
 Moves the target of other to *this.

Detailed Description

Scenario data synchronisation message data type.

Constructor & Destructor Documentation

◆ SyncMessage() [1/3]

hgps::SyncMessage::SyncMessage ( const int run,
const int time )
inlineexplicit

Initialises a new instance of the SyncMessage class.

Parameters
runSimulation run number
timeSimulation time
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SyncMessage() [2/3]

hgps::SyncMessage::SyncMessage ( const SyncMessage & )
delete
Here is the call graph for this function:

◆ ~SyncMessage()

virtual hgps::SyncMessage::~SyncMessage ( )
virtualdefault

Destroys a SyncMessage instance.

◆ SyncMessage() [3/3]

hgps::SyncMessage::SyncMessage ( SyncMessage && other)
protecteddefault

Moves the target of other to the target of *this.

Parameters
otherThe other instance to move
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

SyncMessage & hgps::SyncMessage::operator= ( const SyncMessage & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

SyncMessage & hgps::SyncMessage::operator= ( SyncMessage && other)
protecteddefault

Moves the target of other to *this.

Parameters
otherThe other instance to move
Returns
This instance
Here is the call graph for this function:

◆ run()

int hgps::SyncMessage::run ( ) const
inlinenoexcept

Gets the Simulation run number.

Returns
Run number
Here is the caller graph for this function:

◆ time()

int hgps::SyncMessage::time ( ) const
inlinenoexcept

Gets the Simulation time.

Returns
Simulation time
Here is the caller graph for this function:

The documentation for this class was generated from the following file: