Define the data repository interface for input datasets and back-end storage.
More...
|
| | Repository ()=default |
| | Initialises a new instance of the Repository class.
|
| |
| | Repository (Repository &&)=delete |
| |
| | Repository (const Repository &)=delete |
| |
| Repository & | operator= (Repository &&)=delete |
| |
| Repository & | operator= (const Repository &)=delete |
| |
| virtual | ~Repository ()=default |
| | Destroys a Repository instance.
|
| |
| virtual core::Datastore & | manager () noexcept=0 |
| | Gets a reference to the back-end storage instance.
|
| |
| virtual const RiskFactorModelDefinition & | get_risk_factor_model_definition (const RiskFactorModelType &model_type) const =0 |
| | Gets a user-provided risk factor model definition.
|
| |
| virtual const std::vector< core::DiseaseInfo > & | get_diseases ()=0 |
| | Gets the collection of all diseases available in the back-end storage.
|
| |
| virtual std::optional< core::DiseaseInfo > | get_disease_info (core::Identifier code)=0 |
| | Gets a disease information by identifier.
|
| |
| virtual DiseaseDefinition & | get_disease_definition (const core::DiseaseInfo &info, const ModelInput &config)=0 |
| | Gets a disease complete definition.
|
| |
| virtual LmsDefinition & | get_lms_definition ()=0 |
| | Gets the LMS (lambda-mu-sigma) definition.
|
| |
| virtual void | register_region_prevalence (const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, double > > > ®ion_data)=0 |
| | Register region prevalence data.
|
| |
| virtual void | register_ethnicity_prevalence (const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, std::map< std::string, double > > > > ðnicity_data)=0 |
| | Register ethnicity prevalence data.
|
| |
| virtual const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, double > > > & | get_region_prevalence () const =0 |
| | Gets region prevalence data.
|
| |
| virtual const std::map< core::Identifier, std::map< core::Gender, std::map< std::string, std::map< std::string, double > > > > & | get_ethnicity_prevalence () const =0 |
| | Gets ethnicity prevalence data.
|
| |
Define the data repository interface for input datasets and back-end storage.