Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::modelFit::StaticParameterMap Class Reference

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...
 

Detailed Description

Data structure that stores information about the static parameters of a model fit.

Definition at line 31 of file mitkModelFitStaticParameterMap.h.

Member Typedef Documentation

◆ const_iterator

typedef MapType::const_iterator mitk::modelFit::StaticParameterMap::const_iterator

Needed for 'foreach' support.

Definition at line 57 of file mitkModelFitStaticParameterMap.h.

◆ StaticParameterType

Type of a variable, consisting of name and value list.

Definition at line 41 of file mitkModelFitStaticParameterMap.h.

◆ ValueType

Constructor & Destructor Documentation

◆ StaticParameterMap()

mitk::modelFit::StaticParameterMap::StaticParameterMap ( )
inline

Definition at line 59 of file mitkModelFitStaticParameterMap.h.

Member Function Documentation

◆ Add()

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.

Parameters
nameThe name of the variable to which the values should be added.
newListThe value list that should be added.
Precondition
The given list must contain either 1 or n values, where n is the number of values in lists that are already part of the map (and contain more than one value).
Exceptions
ModelFitExceptionIf the list size is greater than 1 and doesn't match the size of existing multi-value lists.

◆ begin()

const_iterator mitk::modelFit::StaticParameterMap::begin ( ) const
inline

Definition at line 89 of file mitkModelFitStaticParameterMap.h.

◆ Clear()

void mitk::modelFit::StaticParameterMap::Clear ( )

Resets the map so it's empty.

◆ end()

const_iterator mitk::modelFit::StaticParameterMap::end ( ) const
inline

Definition at line 94 of file mitkModelFitStaticParameterMap.h.

◆ Get()

const ValueType& mitk::modelFit::StaticParameterMap::Get ( const std::string &  name) const

Returns the values of the given variable name.

Parameters
nameThe name of the variable whose values should be returned.
Returns
The values of the given variable name.
Exceptions
std::range_errorIf the variable name doesn't exist.

Referenced by mitk::ConcreteAIFBasedModelFactory< TModelParameterizer >::DoCreateParameterizer().

◆ Size()

MapType::size_type mitk::modelFit::StaticParameterMap::Size ( ) const
inline

Definition at line 84 of file mitkModelFitStaticParameterMap.h.

◆ Sort()

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).

Parameters
nameThe name of the variable the map should be sorted by.

The documentation for this class was generated from the following file: