Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
hgps::PopulationRecord Struct Reference

Define the population record data type for the demographic dataset. More...

#include <demographic.h>

Public Member Functions

 PopulationRecord (int pop_age, float num_males, float num_females)
 Initialise a new instance of the PopulationRecord structure. More...
 
float total () const noexcept
 Gets the total number at age. More...
 

Public Attributes

int age {}
 Age reference in years. More...
 
float males {}
 Number of males. More...
 
float females {}
 NUmber of females. More...
 

Detailed Description

Define the population record data type for the demographic dataset.

Constructor & Destructor Documentation

◆ PopulationRecord()

hgps::PopulationRecord::PopulationRecord ( int  pop_age,
float  num_males,
float  num_females 
)
inline

Initialise a new instance of the PopulationRecord structure.

Parameters
pop_ageAge reference
num_malesNumber of males
num_femalesNumber of females

Member Function Documentation

◆ total()

float hgps::PopulationRecord::total ( ) const
inlinenoexcept

Gets the total number at age.

Returns
Total number for age

Member Data Documentation

◆ age

int hgps::PopulationRecord::age {}

Age reference in years.

◆ females

float hgps::PopulationRecord::females {}

NUmber of females.

◆ males

float hgps::PopulationRecord::males {}

Number of males.


The documentation for this struct was generated from the following file: