Stride Reference Manual  - generated for commit 9643b11
stride::viewers::InfectedViewer Class Reference

Viewer gathers infection count at each sim step. More...

#include <InfectedViewer.h>

Collaboration diagram for stride::viewers::InfectedViewer:
Collaboration graph

Public Member Functions

 InfectedViewer (std::shared_ptr< SimRunner > runner)
 Instantiate cases viewer. More...
 
std::vector< unsigned int > GetInfectionCounts ()
 
void Update (sim_event::Id id)
 Let viewer perform update. More...
 

Private Attributes

std::vector< unsigned int > m_infected
 
std::shared_ptr< SimRunnerm_runner
 

Detailed Description

Viewer gathers infection count at each sim step.

Definition at line 34 of file InfectedViewer.h.

Constructor & Destructor Documentation

stride::viewers::InfectedViewer::InfectedViewer ( std::shared_ptr< SimRunner runner)
inlineexplicit

Instantiate cases viewer.

Definition at line 38 of file InfectedViewer.h.

Member Function Documentation

std::vector<unsigned int> stride::viewers::InfectedViewer::GetInfectionCounts ( )
inline

Definition at line 40 of file InfectedViewer.h.

References m_infected, and Update().

Here is the call graph for this function:

void stride::viewers::InfectedViewer::Update ( sim_event::Id  id)

Let viewer perform update.

Definition at line 33 of file InfectedViewer.cpp.

Referenced by stride::StanController::Control(), and GetInfectionCounts().

Here is the caller graph for this function:

Member Data Documentation

std::vector<unsigned int> stride::viewers::InfectedViewer::m_infected
private

Definition at line 46 of file InfectedViewer.h.

Referenced by GetInfectionCounts().

std::shared_ptr<SimRunner> stride::viewers::InfectedViewer::m_runner
private

Definition at line 47 of file InfectedViewer.h.


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