Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
hgps::GenderValue< T > Struct Template Reference

Defines a gender associated value data type. More...

#include <gender_value.h>

Public Member Functions

 GenderValue ()=default
 Initialises a new instance of the GenderValue structure. More...
 
 GenderValue (T males_value, T females_value)
 Initialises a new instance of the GenderValue structure. More...
 
total () const noexcept
 Gets the total value for males and females. More...
 

Public Attributes

males
 Males value. More...
 
females
 Females value. More...
 

Detailed Description

template<typename T>
struct hgps::GenderValue< T >

Defines a gender associated value data type.

Template Parameters
TThe value type

Constructor & Destructor Documentation

◆ GenderValue() [1/2]

template<typename T >
hgps::GenderValue< T >::GenderValue ( )
default

Initialises a new instance of the GenderValue structure.

◆ GenderValue() [2/2]

template<typename T >
hgps::GenderValue< T >::GenderValue ( males_value,
females_value 
)
inline

Initialises a new instance of the GenderValue structure.

Parameters
males_valueThe males value
females_valueThe female value

Member Function Documentation

◆ total()

template<typename T >
T hgps::GenderValue< T >::total ( ) const
inlinenoexcept

Gets the total value for males and females.

Returns
Total value
Here is the caller graph for this function:

Member Data Documentation

◆ females

template<typename T >
T hgps::GenderValue< T >::females

Females value.

◆ males

template<typename T >
T hgps::GenderValue< T >::males

Males value.


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