Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
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.
 
 GenderValue (T males_value, T females_value)
 Initialises a new instance of the GenderValue structure.
 
total () const noexcept
 Gets the total value for males and females.
 

Public Attributes

males
 Males value.
 
females
 Females value.
 

Detailed Description

template<typename T>
requires std::is_arithmetic_v<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: