|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Data structure that stores information about the static parameters of a model fit. More...
#include <mitkModelFitStaticParameterMap.h>
Public Types | |
| typedef ModelBase::StaticParameterValuesType | ValueType |
| Type of the map value. More... | |
| typedef std::pair< KeyType, ValueType > | StaticParameterType |
| Type of a variable, consisting of name and value list. More... | |
| typedef MapType::const_iterator | const_iterator |
| Needed for 'foreach' support. More... | |
Public Member Functions | |
| StaticParameterMap () | |
| void | Add (const std::string &name, const ValueType &newList) |
| Adds the given value list under the given variable name. More... | |
| const ValueType & | Get (const std::string &name) const |
| Returns the values of the given variable name. More... | |
| MapType::size_type | Size () const |
| const_iterator | begin () const |
| const_iterator | end () const |
| void | Sort (const std::string &name="") |
| Sorts the map by the values of the given variable in ascending order. More... | |
| void | Clear () |
| Resets the map so it's empty. More... | |
Data structure that stores information about the static parameters of a model fit.
Definition at line 31 of file mitkModelFitStaticParameterMap.h.
| typedef MapType::const_iterator mitk::modelFit::StaticParameterMap::const_iterator |
Needed for 'foreach' support.
Definition at line 57 of file mitkModelFitStaticParameterMap.h.
| typedef std::pair<KeyType, ValueType> mitk::modelFit::StaticParameterMap::StaticParameterType |
Type of a variable, consisting of name and value list.
Definition at line 41 of file mitkModelFitStaticParameterMap.h.
Type of the map value.
Definition at line 39 of file mitkModelFitStaticParameterMap.h.
|
inline |
Definition at line 59 of file mitkModelFitStaticParameterMap.h.
| void mitk::modelFit::StaticParameterMap::Add | ( | const std::string & | name, |
| const ValueType & | newList | ||
| ) |
Adds the given value list under the given variable name.
If the name already exists, nothing is added.
| name | The name of the variable to which the values should be added. |
| newList | The value list that should be added. |
| ModelFitException | If the list size is greater than 1 and doesn't match the size of existing multi-value lists. |
|
inline |
Definition at line 89 of file mitkModelFitStaticParameterMap.h.
| void mitk::modelFit::StaticParameterMap::Clear | ( | ) |
Resets the map so it's empty.
|
inline |
Definition at line 94 of file mitkModelFitStaticParameterMap.h.
| const ValueType& mitk::modelFit::StaticParameterMap::Get | ( | const std::string & | name | ) | const |
Returns the values of the given variable name.
| name | The name of the variable whose values should be returned. |
| std::range_error | If the variable name doesn't exist. |
Referenced by mitk::ConcreteAIFBasedModelFactory< TModelParameterizer >::DoCreateParameterizer().
|
inline |
Definition at line 84 of file mitkModelFitStaticParameterMap.h.
| void mitk::modelFit::StaticParameterMap::Sort | ( | const std::string & | name = "" | ) |
Sorts the map by the values of the given variable in ascending order.
All other variables' values are reordered accordingly. If name is empty or the variable could not be found, the map is ordered by the first variable that contains more than one value (also in ascending order).
| name | The name of the variable the map should be sorted by. |