|
Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the population life table data type. More...
#include <life_table.h>
Public Member Functions | |
| LifeTable ()=delete | |
| LifeTable (std::map< int, Birth > &&births, std::map< int, std::map< int, Mortality >> &&deaths) | |
| Initialises a new instance of the LifeTable structure. More... | |
| const Birth & | get_births_at (int time_year) const |
| Gets the Birth indicators at a given time. More... | |
| const std::map< int, Mortality > & | get_mortalities_at (int time_year) const |
| Gets the Mortality indicators at a given time. More... | |
| double | get_total_deaths_at (int time_year) const |
| Gets the total number of deaths at a given time. More... | |
| bool | contains_age (int age) const noexcept |
| Determine whether the LifeTable data contains a given age. More... | |
| bool | contains_time (int time_year) const noexcept |
| Determine whether the LifeTable data contains a given time. More... | |
| const core::IntegerInterval & | time_limits () const noexcept |
| Gets the LifeTable data time limits. More... | |
| const core::IntegerInterval & | age_limits () const noexcept |
| Gets the LifeTable data age limits. More... | |
| bool | empty () const noexcept |
| Determine whether the LifeTable data is empty. More... | |
Defines the population life table data type.
|
delete |
| hgps::LifeTable::LifeTable | ( | std::map< int, Birth > && | births, |
| std::map< int, std::map< int, Mortality >> && | deaths | ||
| ) |
Initialises a new instance of the LifeTable structure.
| births | Number of births per year |
| deaths | Number of deaths per year and age |
|
noexcept |
Gets the LifeTable data age limits.
|
noexcept |
|
noexcept |
|
noexcept |
| const Birth & hgps::LifeTable::get_births_at | ( | int | time_year | ) | const |
| const std::map< int, Mortality > & hgps::LifeTable::get_mortalities_at | ( | int | time_year | ) | const |
Gets the Mortality indicators at a given time.
| time_year | Time of mortality |
| double hgps::LifeTable::get_total_deaths_at | ( | int | time_year | ) | const |
Gets the total number of deaths at a given time.
| time_year | Time of deaths |
|
noexcept |
Gets the LifeTable data time limits.