|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
Internal details namespace for private data types and functions. More...
Classes | |
| struct | RelativeRiskInfo |
| Collate the information for retrieving relative risks for a disease. More... | |
| class | StoreConverter |
| Back-end data stop POCO types converter to Health-GPS types. More... | |
Typedefs | |
| using | DiseaseModelBuilder = std::function< std::shared_ptr< DiseaseModel >(DiseaseDefinition &definition, WeightModel &&classifier, const core::IntegerInterval &age_range)> |
| Defines the disease model builder function signature and required parameters type. | |
Functions | |
| RelativeRisk | create_relative_risk (const RelativeRiskInfo &info) |
| Creates the relative risk definition for a disease. | |
| std::string | model_action_str (ModelAction action) |
| Converts enumeration to string, not pretty but no support in C++. | |
| std::vector< size_t > | get_nutrient_indexes (const std::vector< std::string > &column_names, const std::vector< core::Identifier > &nutrients) |
| Work out which column each macronutrient is in. | |
| std::unordered_map< core::Identifier, std::vector< double > > | get_nutrient_table (rapidcsv::Document &doc, const std::vector< core::Identifier > &nutrients, const std::vector< size_t > &nutrient_idx) |
Internal details namespace for private data types and functions.
| using hgps::detail::DiseaseModelBuilder = typedef std::function<std::shared_ptr<DiseaseModel>( DiseaseDefinition &definition, WeightModel &&classifier, const core::IntegerInterval &age_range)> |
Defines the disease model builder function signature and required parameters type.
| RelativeRisk hgps::detail::create_relative_risk | ( | const RelativeRiskInfo & | info | ) |
Creates the relative risk definition for a disease.
| info | The relative risk information |
| std::vector< size_t > hgps::detail::get_nutrient_indexes | ( | const std::vector< std::string > & | column_names, |
| const std::vector< core::Identifier > & | nutrients | ||
| ) |
Work out which column each macronutrient is in.
| column_names | Column names for CSV file |
| nutrients | Macronutrients |
| std::unordered_map< core::Identifier, std::vector< double > > hgps::detail::get_nutrient_table | ( | rapidcsv::Document & | doc, |
| const std::vector< core::Identifier > & | nutrients, | ||
| const std::vector< size_t > & | nutrient_idx | ||
| ) |
| std::string hgps::detail::model_action_str | ( | ModelAction | action | ) |
Converts enumeration to string, not pretty but no support in C++.