Class Virus¶
template <typename TSeq>
#include <virus-bones.hpp>
Public Functions¶
| Type | Name |
|---|---|
| EPI_TYPENAME_TRAITS (TSeq, int) |
|
| Virus () |
|
| Virus (std::string name="unknown virus") |
|
| Virus (std::string name, epiworld_double prevalence, bool as_proportion) |
|
| virtual std::unique_ptr< Virus< TSeq > > | clone_ptr () const |
| void | distribute (Model< TSeq > * model) Get information about the prevalence of the virus. |
| Agent< TSeq > * | get_agent () |
| int | get_date () const |
| int | get_id () const |
| epiworld_double | get_incubation (Model< TSeq > * model) |
| std::string | get_name () const |
| epiworld_double | get_prob_death (Model< TSeq > * model) |
| epiworld_double | get_prob_infecting (Model< TSeq > * model) |
| epiworld_double | get_prob_recovery (Model< TSeq > * model) |
| void | get_queue (epiworld_fast_int * init, epiworld_fast_int * end, epiworld_fast_int * removed=nullptr) const |
| void | get_state (epiworld_fast_int * init, epiworld_fast_int * end, epiworld_fast_int * removed=nullptr) const |
| void | mutate (Model< TSeq > * model) |
| bool | operator!= (const Virus< TSeq > & other) const |
| bool | operator== (const Virus< TSeq > & other) const |
| bool | operator== (const Virus< std::vector< int > > & other) const |
| void | post_recovery (Model< TSeq > * model) |
| void | print () const |
| void | set_agent (Agent< TSeq > * p) |
| void | set_date (int d) |
| void | set_distribution (VirusToAgentFun< TSeq > fun) |
| void | set_id (int idx) |
| void | set_incubation (std::string param) |
| void | set_incubation (epiworld_double * prob) = delete |
| void | set_incubation (epiworld_double prob) |
| void | set_incubation_fun (VirusFun< TSeq > fun) |
| void | set_mutation (MutFun< TSeq > fun) |
| void | set_name (std::string name) |
| void | set_post_immunity (epiworld_double prob) |
| void | set_post_immunity (std::string param) |
| void | set_post_immunity (epiworld_double * prob) = delete |
| void | set_post_recovery (PostRecoveryFun< TSeq > fun) |
| void | set_prob_death (std::string param) |
| void | set_prob_death (epiworld_double * prob) = delete |
| void | set_prob_death (epiworld_double prob) |
| void | set_prob_death_fun (VirusFun< TSeq > fun) |
| void | set_prob_infecting (std::string param) |
| void | set_prob_infecting (epiworld_double * prob) = delete |
| void | set_prob_infecting (epiworld_double prob) |
| void | set_prob_infecting_fun (VirusFun< TSeq > fun) |
| void | set_prob_recovery (std::string param) |
| void | set_prob_recovery (epiworld_double * prob) = delete |
| void | set_prob_recovery (epiworld_double prob) |
| void | set_prob_recovery_fun (VirusFun< TSeq > fun) |
| void | set_queue (epiworld_fast_int init, epiworld_fast_int end, epiworld_fast_int removed=-99) |
| void | set_sequence (TSeq sequence) |
| void | set_sequence (int sequence) |
| void | set_state (epiworld_fast_int init, epiworld_fast_int end, epiworld_fast_int removed=-99) |
| virtual | ~Virus () = default |
Detailed Description¶
Template parameters:
TSeq
Raw transmisibility of a virus should be a function of its genetic sequence. Nonetheless, transmisibility can be reduced as a result of having one or more tools to fight the virus. Because of this, transmisibility should be a function of the agent.
Public Functions Documentation¶
function EPI_TYPENAME_TRAITS [2/2]¶
function Virus [1/3]¶
function Virus [2/3]¶
function Virus [3/3]¶
function clone_ptr¶
function distribute¶
Get information about the prevalence of the virus.
function get_agent¶
function get_date¶
function get_id¶
function get_incubation¶
function get_name¶
function get_prob_death¶
function get_prob_infecting¶
function get_prob_recovery¶
function get_queue¶
inline void Virus::get_queue (
epiworld_fast_int * init,
epiworld_fast_int * end,
epiworld_fast_int * removed=nullptr
) const
function get_state¶
inline void Virus::get_state (
epiworld_fast_int * init,
epiworld_fast_int * end,
epiworld_fast_int * removed=nullptr
) const
function mutate¶
function operator!=¶
function operator==¶
function operator==¶
function post_recovery¶
function print¶
function set_agent¶
function set_date¶
function set_distribution¶
function set_id¶
function set_incubation [1/3]¶
function set_incubation [2/3]¶
function set_incubation [3/3]¶
function set_incubation_fun¶
function set_mutation¶
function set_name¶
function set_post_immunity [1/3]¶
function set_post_immunity [2/3]¶
function set_post_immunity [3/3]¶
function set_post_recovery¶
function set_prob_death [1/3]¶
function set_prob_death [2/3]¶
function set_prob_death [3/3]¶
function set_prob_death_fun¶
function set_prob_infecting [1/3]¶
function set_prob_infecting [2/3]¶
function set_prob_infecting [3/3]¶
function set_prob_infecting_fun¶
function set_prob_recovery [1/3]¶
function set_prob_recovery [2/3]¶
function set_prob_recovery [3/3]¶
function set_prob_recovery_fun¶
function set_queue¶
inline void Virus::set_queue (
epiworld_fast_int init,
epiworld_fast_int end,
epiworld_fast_int removed=-99
)
function set_sequence [1/2]¶
function set_sequence [2/2]¶
function set_state¶
inline void Virus::set_state (
epiworld_fast_int init,
epiworld_fast_int end,
epiworld_fast_int removed=-99
)
function ~Virus¶
The documentation for this class was generated from the following file epiworld-src/include/epiworld/virus-bones.hpp