Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Weight classification model polymorphic wrapper class. More...
#include <weight_model.h>
Public Member Functions | |
template<typename T > | |
WeightModel (T &&value) | |
Initialises a new instance of the WeightModel class. More... | |
WeightModel (const WeightModel &other) | |
Constructs the WeightModel with the copy of the other's contents. More... | |
WeightModel & | operator= (const WeightModel &other) |
Replaces the WeightModel with a copy of the other's contents. More... | |
WeightModel (WeightModel &&other)=default | |
Constructs the WeightModel with the contents of other using move semantics. More... | |
WeightModel & | operator= (WeightModel &&other)=default |
Replaces the WeightModel contents with the other using move semantics. More... | |
unsigned int | child_cutoff_age () const noexcept |
Gets the children cut-off age (before adult) More... | |
WeightCategory | classify_weight (const Person &person) const |
Classify a person weight according with the predefined categories. More... | |
double | adjust_risk_factor_value (const Person &entity, const core::Identifier &risk_factor_key, double value) const |
Adjust a Person risk factor value. More... | |
Weight classification model polymorphic wrapper class.
|
inline |
Initialises a new instance of the WeightModel class.
T | Weight model type |
value | The weight model instance |
|
inline |
Constructs the WeightModel with the copy of the other's contents.
other | The other WeightModel instance to copy |
|
default |
Constructs the WeightModel with the contents of other using move semantics.
other | The other WeightModel instance to move |
|
inline |
|
inlinenoexcept |
Gets the children cut-off age (before adult)
|
inline |
Classify a person weight according with the predefined categories.
person | The Person instance to classify |
|
inline |
Replaces the WeightModel with a copy of the other's contents.
other | The other WeightModel instance to copy |
|
default |
Replaces the WeightModel contents with the other using move semantics.
other | The other WeightModel instance to move |