|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the gender column lookup table data type. More...
#include <gender_table.h>
Public Member Functions | |
| GenderTable ()=default | |
| Initialises a new instance of the GenderTable class. | |
| GenderTable (const MonotonicVector< ROW > &rows, const std::vector< core::Gender > &cols, core::Array2D< TYPE > &&values) | |
| Initialises a new instance of the GenderTable class. | |
| std::size_t | size () const noexcept |
| Gets the lookup table size. | |
| std::size_t | rows () const noexcept |
| Get the number of rows lookup breakpoints. | |
| std::size_t | columns () const noexcept |
| Get the number of columns lookup breakpoints. | |
| bool | empty () const noexcept |
| Determine whether the lookup table is empty. | |
| TYPE & | at (const ROW row, const core::Gender gender) |
| Gets a value at a given row and column intersection. | |
| const TYPE & | at (const ROW row, const core::Gender gender) const |
| Gets a read-only value at a given row and column intersection. | |
| TYPE & | operator() (const ROW row, const core::Gender gender) |
| Gets a value at a given row and column intersection. | |
| const TYPE & | operator() (const ROW row, const core::Gender gender) const |
| Gets a read-only value at a given row and column intersection. | |
| bool | contains (const ROW row) const noexcept |
| Determines whether the lookup contains a row. | |
| bool | contains (const ROW row, const core::Gender gender) const noexcept |
| Determines whether the lookup contains a value. | |
Defines the gender column lookup table data type.
| ROW | The rows value type |
| TYPE | The cell value type |
|
default |
Initialises a new instance of the GenderTable class.
|
inline |
Initialises a new instance of the GenderTable class.
| rows | The monotonic rows lookup breakpoints |
| cols | The gender columns lookup breakpoints |
| values | The full lookup-table values |
| std::invalid_argument | for lookup breakpoints and values table size mismatch |
|
inline |
Gets a value at a given row and column intersection.
| row | The reference row |
| gender | The reference column |
| std::out_of_range | for accessing unknown lookup breakpoints |
|
inline |
Gets a read-only value at a given row and column intersection.
| row | The reference row |
| gender | The reference column |
| std::out_of_range | for accessing unknown lookup breakpoints |
|
inlinenoexcept |
Get the number of columns lookup breakpoints.
|
inlinenoexcept |
Determines whether the lookup contains a row.
| row | The row breakpoint value |
|
inlinenoexcept |
Determines whether the lookup contains a value.
| row | The row breakpoint value |
| gender | The column breakpoint value |
|
inlinenoexcept |
Determine whether the lookup table is empty.
|
inline |
Gets a value at a given row and column intersection.
| row | The reference row |
| gender | The reference column |
| std::out_of_range | for accessing unknown lookup breakpoints |
|
inline |
Gets a read-only value at a given row and column intersection.
| row | The reference row |
| gender | The reference column |
| std::out_of_range | for accessing unknown lookup breakpoints |
|
inlinenoexcept |
Get the number of rows lookup breakpoints.
|
inlinenoexcept |
Gets the lookup table size.