Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
hgps::detail Namespace Reference

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)
 

Detailed Description

Internal details namespace for private data types and functions.

Typedef Documentation

◆ DiseaseModelBuilder

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.

Function Documentation

◆ create_relative_risk()

RelativeRisk hgps::detail::create_relative_risk ( const RelativeRiskInfo info)

Creates the relative risk definition for a disease.

Parameters
infoThe relative risk information
Returns
The disease relative risk instance
Here is the call graph for this function:

◆ get_nutrient_indexes()

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.

Parameters
column_namesColumn names for CSV file
nutrientsMacronutrients
Returns
Index for each macronutrient in order
Here is the caller graph for this function:

◆ get_nutrient_table()

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 
)
Here is the caller graph for this function:

◆ model_action_str()

std::string hgps::detail::model_action_str ( ModelAction  action)

Converts enumeration to string, not pretty but no support in C++.

Here is the caller graph for this function: