Class GlobalEvent¶
template <typename TSeq>
Template for a Global Event .More...
#include <globalevent-bones.hpp>
Inherited by the following classes: InterventionMeaslesPEP
Public Functions¶
| Type | Name |
|---|---|
| GlobalEvent () |
|
| GlobalEvent (GlobalFun< TSeq > fun, std::string name, int day=-99) Construct a new Global Event object. |
|
| virtual std::unique_ptr< GlobalEvent< TSeq > > | clone_ptr () const |
| int | get_day () const |
| std::string | get_name () const |
| bool | operator!= (const GlobalEvent< TSeq > & other) const |
| virtual void | operator() (Model< TSeq > * m, int day) |
| bool | operator== (const GlobalEvent< TSeq > & other) const |
| void | print () const |
| void | set_day (int day) |
| void | set_name (std::string name) |
| virtual | ~GlobalEvent () = default |
Detailed Description¶
Global events are functions that Model<TSeq> executes at the end of a day.
Public Functions Documentation¶
function GlobalEvent [1/2]¶
function GlobalEvent [2/2]¶
Construct a new Global Event object.
Parameters:
funA function that takes a Model<TSeq> * as argument and returns void.nameA descriptive name for the action.dayThe day when the action will be executed. If negative, it will be executed every day.
function clone_ptr¶
function get_day¶
function get_name¶
function operator!=¶
function operator()¶
function operator==¶
function print¶
function set_day¶
function set_name¶
function ~GlobalEvent¶
The documentation for this class was generated from the following file epiworld-src/include/epiworld/globalevent-bones.hpp