7#include <unordered_map>
34 const std::string &
name() const noexcept;
38 int level() const noexcept;
42 const core::Identifier &
key() const noexcept;
55 core::Identifier name_key_;
76 const std::vector<MappingEntry> &
entries() const noexcept;
80 std::
size_t size() const noexcept;
122 std::vector<MappingEntry> mapping_;
Defines the hierarchical model mapping data type.
Definition mapping.h:61
IteratorType end() noexcept
Gets an iterator to the element following the last mapping.
Definition mapping.h:103
ConstIteratorType cend() const noexcept
Gets a read-only iterator to the element following the last mapping.
Definition mapping.h:119
std::vector< MappingEntry >::iterator IteratorType
Hierarchical mappings iterator.
Definition mapping.h:64
ConstIteratorType end() const noexcept
Gets a read-only iterator to the element following the last mapping.
Definition mapping.h:111
std::vector< MappingEntry >::const_iterator ConstIteratorType
read-only hierarchical mappings iterator
Definition mapping.h:66
IteratorType begin() noexcept
Gets an iterator to the beginning of the mappings.
Definition mapping.h:99
const std::vector< MappingEntry > & entries() const noexcept
Gets the collection of mapping entries.
Definition mapping.cpp:45
int max_level() const noexcept
Gets the maximum hierarchical level.
Definition mapping.cpp:49
std::size_t size() const noexcept
Gets the size of the mappings collection.
Definition mapping.cpp:47
ConstIteratorType cbegin() const noexcept
Gets an read-only iterator to the beginning of the mappings.
Definition mapping.h:115
ConstIteratorType begin() const noexcept
Gets an read-only iterator to the beginning of the mappings.
Definition mapping.h:107
std::vector< MappingEntry > at_level(int level) const noexcept
Gets the mapping entries at a given hierarchical level.
Definition mapping.cpp:68
HierarchicalMapping()=delete
MappingEntry at(const core::Identifier &key) const
Gets a mapping entry by identifier.
Definition mapping.cpp:57
Defines risk factor mapping entry data type.
Definition mapping.h:22
int level() const noexcept
Gets the factor hierarchical level.
Definition mapping.cpp:16
const core::Identifier & key() const noexcept
Gets the factor unique identification.
Definition mapping.cpp:18
double get_bounded_value(double value) const noexcept
Adjusts a value to the factor range, if provided.
Definition mapping.cpp:22
const OptionalInterval & range() const noexcept
Gets the factor allowed values range.
Definition mapping.cpp:20
const std::string & name() const noexcept
Gets the factor name.
Definition mapping.cpp:14
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:8
std::optional< core::DoubleInterval > OptionalInterval
Optional Range of doubles data type.
Definition mapping.h:16
const core::Identifier InterceptKey
The constant in the regression model presentation identifier.
Definition mapping.h:13
Global namespace.
Definition column_iterator.h:123
Entity unique identifier data type.
Definition identifier.h:20