|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the policy impact on risk factors data structure. More...
#include <intervention_scenario.h>
Public Member Functions | |
| PolicyImpact ()=delete | |
| PolicyImpact (core::Identifier risk_factor_key, double policy_impact, unsigned int start_age, std::optional< unsigned int > end_age=std::nullopt) | |
| Initialise a new instance of the PolicyImpact structure. | |
| bool | contains (unsigned int age) const noexcept |
| Determine whether this impact should be applied to a given age. | |
Public Attributes | |
| core::Identifier | risk_factor {} |
| The risk factor identifier. | |
| double | value {} |
| The effect value. | |
| unsigned int | from_age {} |
| Impact applies from age. | |
| std::optional< unsigned int > | to_age {} |
| Impact applies to age, if no value, no upper limit. | |
Defines the policy impact on risk factors data structure.
|
delete |
|
inline |
Initialise a new instance of the PolicyImpact structure.
| risk_factor_key | Risk factor identifier |
| policy_impact | The impact on risk factor value |
| start_age | Impact start age, inclusive |
| end_age | Impact end age, inclusive |
| std::out_of_range | for impact end age less than the start age. |
Determine whether this impact should be applied to a given age.
| age | The age to check |
| core::Identifier hgps::PolicyImpact::risk_factor {} |
The risk factor identifier.
Impact applies to age, if no value, no upper limit.
| double hgps::PolicyImpact::value {} |
The effect value.