File model-meat.hpp¶
FileList > epiworld > model-meat.hpp
Go to the source code of this file
#include <vector>#include <functional>#include <memory>#include <random>#include <string>#include <map>#include <unordered_map>#include "config.hpp"#include "userdata-bones.hpp"#include "adjlist-bones.hpp"#include "model-bones.hpp"#include "virus-bones.hpp"#include "agent-bones.hpp"#include "tool-bones.hpp"#include "rng-utils.hpp"#include "modeldiagram-bones.hpp"#include "model-meat-print.hpp"
Public Functions¶
| Type | Name |
|---|---|
| std::function< void(size_t, Model< TSeq > *)> | make_save_run (std::string fmt, bool total_hist, bool virus_info, bool virus_hist, bool tool_info, bool tool_hist, bool transmission, bool transition, bool reproductive, bool generation, bool active_cases, bool outbreak_size, bool hospitalizations) Function factory for saving model runs. |
Macros¶
| Type | Name |
|---|---|
| define | DURCAST (tunit, txtunit) /* multi line expression */ |
| define | VECT_MATCH (a, b, c) /* multi line expression */ |
Public Functions Documentation¶
function make_save_run¶
Function factory for saving model runs.
template<typename TSeq>
inline std::function< void(size_t, Model < TSeq > *)> make_save_run (
std::string fmt,
bool total_hist,
bool virus_info,
bool virus_hist,
bool tool_info,
bool tool_hist,
bool transmission,
bool transition,
bool reproductive,
bool generation,
bool active_cases,
bool outbreak_size,
bool hospitalizations
)
This function is the default behavior of the run_multiple member of Model <TSeq>. By default only the total history ( case counts by unit of time.)
Template parameters:
TSeq
Parameters:
fmttotal_histvirus_infovirus_histtool_infotool_histtransmissiontransition
Returns:
std::function<void(size_t,Model<TSeq>*)>
Macro Definition Documentation¶
define DURCAST¶
define VECT_MATCH¶
The documentation for this class was generated from the following file epiworld-src/include/epiworld/model-meat.hpp