Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
hgps::input::PIFData Class Reference

PIF data container for multiple scenarios. More...

#include <pif_data.h>

Public Member Functions

 PIFData ()=default
 Default constructor.
 
void add_scenario_data (const std::string &scenario, PIFTable &&table)
 Add PIF table for a specific scenario.
 
const PIFTableget_scenario_data (const std::string &scenario) const
 Get PIF table for specific scenario.
 
bool has_data () const noexcept
 Check if PIF data is available for any scenario.
 
std::size_t scenario_count () const noexcept
 Get the number of scenarios.
 
std::vector< std::string > get_scenario_names () const
 Get all available scenario names.
 
void clear () noexcept
 Clear all data.
 

Detailed Description

PIF data container for multiple scenarios.

Constructor & Destructor Documentation

◆ PIFData()

hgps::input::PIFData::PIFData ( )
default

Default constructor.

Member Function Documentation

◆ add_scenario_data()

void hgps::input::PIFData::add_scenario_data ( const std::string &  scenario,
PIFTable &&  table 
)

Add PIF table for a specific scenario.

Parameters
scenarioScenario name (e.g., "Scenario1", "Scenario2", "Scenario3")
tablePIF table to add
Here is the caller graph for this function:

◆ clear()

void hgps::input::PIFData::clear ( )
inlinenoexcept

Clear all data.

◆ get_scenario_data()

const PIFTable * hgps::input::PIFData::get_scenario_data ( const std::string &  scenario) const

Get PIF table for specific scenario.

Parameters
scenarioScenario name
Returns
Pointer to PIF table, or nullptr if not found
Here is the caller graph for this function:

◆ get_scenario_names()

std::vector< std::string > hgps::input::PIFData::get_scenario_names ( ) const

Get all available scenario names.

Returns
Vector of scenario names

◆ has_data()

bool hgps::input::PIFData::has_data ( ) const
inlinenoexcept

Check if PIF data is available for any scenario.

Returns
true if data is available, false otherwise
Here is the caller graph for this function:

◆ scenario_count()

std::size_t hgps::input::PIFData::scenario_count ( ) const
inlinenoexcept

Get the number of scenarios.

Returns
Number of scenarios with data

The documentation for this class was generated from the following files: