|
Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the hierarchical model mapping data type. More...
#include <mapping.h>
Public Types | |
| using | IteratorType = std::vector< MappingEntry >::iterator |
| Hierarchical mappings iterator. More... | |
| using | ConstIteratorType = std::vector< MappingEntry >::const_iterator |
| read-only hierarchical mappings iterator More... | |
Public Member Functions | |
| HierarchicalMapping ()=delete | |
| HierarchicalMapping (std::vector< MappingEntry > &&mapping) | |
| Initialises a new instance of the HierarchicalMapping class. More... | |
| const std::vector< MappingEntry > & | entries () const noexcept |
| Gets the collection of mapping entries. More... | |
| std::vector< MappingEntry > | entries_without_dynamic () const noexcept |
| Gets the collection of mapping entries without the dynamic factor. More... | |
| std::size_t | size () const noexcept |
| Gets the size of the mappings collection. More... | |
| int | max_level () const noexcept |
| Gets the maximum hierarchical level. More... | |
| MappingEntry | at (const core::Identifier &key) const |
| Gets a mapping entry by identifier. More... | |
| std::vector< MappingEntry > | at_level (int level) const noexcept |
| Gets the mapping entries at a given hierarchical level. More... | |
| std::vector< MappingEntry > | at_level_without_dynamic (int level) const noexcept |
| Gets the mapping entries at a given hierarchical level without the dynamic factor. More... | |
| IteratorType | begin () noexcept |
| Gets an iterator to the beginning of the mappings. More... | |
| IteratorType | end () noexcept |
| Gets an iterator to the element following the last mapping. More... | |
| ConstIteratorType | begin () const noexcept |
| Gets an read-only iterator to the beginning of the mappings. More... | |
| ConstIteratorType | end () const noexcept |
| Gets a read-only iterator to the element following the last mapping. More... | |
| ConstIteratorType | cbegin () const noexcept |
| Gets an read-only iterator to the beginning of the mappings. More... | |
| ConstIteratorType | cend () const noexcept |
| Gets a read-only iterator to the element following the last mapping. More... | |
Defines the hierarchical model mapping data type.
| using hgps::HierarchicalMapping::ConstIteratorType = std::vector<MappingEntry>::const_iterator |
read-only hierarchical mappings iterator
| using hgps::HierarchicalMapping::IteratorType = std::vector<MappingEntry>::iterator |
Hierarchical mappings iterator.
|
delete |
| hgps::HierarchicalMapping::HierarchicalMapping | ( | std::vector< MappingEntry > && | mapping | ) |
Initialises a new instance of the HierarchicalMapping class.
| mapping | The collection of mapping entries |
| MappingEntry hgps::HierarchicalMapping::at | ( | const core::Identifier & | key | ) | const |
Gets a mapping entry by identifier.
| key | The factor unique identifier |
| std::out_of_range | for identifier not found in the mappings collection. |
|
noexcept |
Gets the mapping entries at a given hierarchical level.
| level | The hierarchical level |
|
noexcept |
Gets the mapping entries at a given hierarchical level without the dynamic factor.
| level | The hierarchical level |
|
inlinenoexcept |
Gets an read-only iterator to the beginning of the mappings.
|
inlinenoexcept |
Gets an iterator to the beginning of the mappings.
|
inlinenoexcept |
Gets an read-only iterator to the beginning of the mappings.
|
inlinenoexcept |
Gets a read-only iterator to the element following the last mapping.
|
inlinenoexcept |
Gets a read-only iterator to the element following the last mapping.
|
inlinenoexcept |
Gets an iterator to the element following the last mapping.
|
noexcept |
Gets the collection of mapping entries.
|
noexcept |
Gets the collection of mapping entries without the dynamic factor.
|
noexcept |
Gets the maximum hierarchical level.
|
noexcept |
Gets the size of the mappings collection.