Define the population record data type for the demographic dataset.
More...
#include <interfaces.h>
|
| | PopulationRecord (int pop_age, float num_males, float num_females) |
| | Initialise a new instance of the PopulationRecord structure.
|
| |
| float | total () const noexcept |
| | Gets the total number at age.
|
| |
|
| int | age {} |
| | Age reference in years.
|
| |
| float | males {} |
| | Number of males.
|
| |
| float | females {} |
| | NUmber of females.
|
| |
Define the population record data type for the demographic dataset.
◆ PopulationRecord()
| hgps::PopulationRecord::PopulationRecord |
( |
int |
pop_age, |
|
|
float |
num_males, |
|
|
float |
num_females |
|
) |
| |
|
inline |
Initialise a new instance of the PopulationRecord structure.
- Parameters
-
| pop_age | Age reference |
| num_males | Number of males |
| num_females | Number of females |
◆ total()
| float hgps::PopulationRecord::total |
( |
| ) |
const |
|
inlinenoexcept |
Gets the total number at age.
- Returns
- Total number for age
◆ age
| int hgps::PopulationRecord::age {} |
◆ females
| float hgps::PopulationRecord::females {} |
◆ males
| float hgps::PopulationRecord::males {} |
The documentation for this struct was generated from the following file: