Skip to content

File model-bones.hpp

FileList > epiworld > model-bones.hpp

Go to the source code of this file

  • #include <memory>
  • #include <vector>
  • #include <functional>
  • #include <string>
  • #include <map>
  • #include "config.hpp"
  • #include "agent-bones.hpp"
  • #include "virus-bones.hpp"
  • #include "viruses-bones.hpp"
  • #include "tool-bones.hpp"
  • #include "database-bones.hpp"
  • #include "queue-bones.hpp"
  • #include "globalevent-bones.hpp"

Classes

Type Name
class Model <typename TSeq>
Core class of epiworld.

Public Functions

Type Name
std::function< void(size_t, Model< TSeq > *)> make_save_run (std::string fmt="%03lu-episimulation.csv", bool total_hist=true, bool virus_info=false, bool virus_hist=false, bool tool_info=false, bool tool_hist=false, bool transmission=false, bool transition=false, bool reproductive=false, bool generation=false, bool active_cases=false, bool outbreak_size=false, bool hospitalizations=false)
Function factory for saving model runs.

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="%03lu-episimulation.csv",
    bool total_hist=true,
    bool virus_info=false,
    bool virus_hist=false,
    bool tool_info=false,
    bool tool_hist=false,
    bool transmission=false,
    bool transition=false,
    bool reproductive=false,
    bool generation=false,
    bool active_cases=false,
    bool outbreak_size=false,
    bool hospitalizations=false
) 

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:

  • fmt
  • total_hist
  • virus_info
  • virus_hist
  • tool_info
  • tool_hist
  • transmission
  • transition

Returns:

std::function<void(size_t,Model<TSeq>*)>



The documentation for this class was generated from the following file epiworld-src/include/epiworld/model-bones.hpp