Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#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 if the name doesn't exist already. If it does exist, nothing is added. 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 values of the given variable name in ascending order. The values of all other variables will also be switched in that specific order. 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). More... | |
void | Clear () |
Resets the map, so it's empty. More... | |
Data structure that is used to store information about the static parameters of a model fit
Definition at line 28 of file mitkModelFitStaticParameterMap.h.
typedef MapType::const_iterator mitk::modelFit::StaticParameterMap::const_iterator |
Needed for 'foreach' support.
Definition at line 55 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 38 of file mitkModelFitStaticParameterMap.h.
Type of the map value.
Definition at line 36 of file mitkModelFitStaticParameterMap.h.
|
inline |
Definition at line 57 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 doesn't exist already. If it does exist, 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 given list contains an amount of values that is greater than 1 and doesn't match the amount of values of the lists that are already part of the map (see pre-condition). |
Definition at line 18 of file mitkModelFitStaticParameterMap.cpp.
References mitkThrowException.
Referenced by mitkModelFitStaticParameterMapTest().
|
inline |
Definition at line 89 of file mitkModelFitStaticParameterMap.h.
Referenced by mitk::modelFit::ConvertStaticParametersToProperty().
void mitk::modelFit::StaticParameterMap::Clear | ( | ) |
Resets the map, so it's empty.
Definition at line 177 of file mitkModelFitStaticParameterMap.cpp.
Referenced by mitkModelFitStaticParameterMapTest().
|
inline |
Definition at line 94 of file mitkModelFitStaticParameterMap.h.
Referenced by mitk::modelFit::ConvertStaticParametersToProperty().
const mitk::modelFit::StaticParameterMap::ValueType & mitk::modelFit::StaticParameterMap::Get | ( | const std::string & | name | ) | const |
Returns the values of the given variable name.
name | The name of the variables whose values should be returned. |
std::range_error | If the variable name doesn't exist. |
Definition at line 47 of file mitkModelFitStaticParameterMap.cpp.
Referenced by QmitkFitParameterModel::data(), mitk::NumericTwoCompartmentExchangeModelFactory::DoCreateParameterizer(), mitk::ConcreteAIFBasedModelFactory< NumericTwoTissueCompartmentModelParameterizer >::DoCreateParameterizer(), mitk::DescriptivePharmacokineticBrixModelFactory::DoCreateParameterizer(), mitk::GenericParamModelFactory::DoCreateParameterizer(), and mitkModelFitStaticParameterMapTest().
|
inline |
Definition at line 84 of file mitkModelFitStaticParameterMap.h.
Referenced by QmitkFitParameterModel::data().
void mitk::modelFit::StaticParameterMap::Sort | ( | const std::string & | name = "" | ) |
Sorts the values of the given variable name in ascending order. The values of all other variables will also be switched in that specific order. 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).
Example: Before sorting: "A": [3, 2, 5, 1, 4] "B": [0] "C": [3, 4, 1, 5, 2] Sort(): "A": [1, 2, 3, 4, 5] "B": [0] "C": [5, 4, 3, 2, 1] Sort("B"): "A": [5, 4, 3, 2, 1] "B": [0] "C": [1, 2, 3, 4, 5] Sort("X"): "A": [1, 2, 3, 4, 5] "B": [0] "C": [5, 4, 3, 2, 1]
name | The name of the variable the map should be sorted by. |
Definition at line 59 of file mitkModelFitStaticParameterMap.cpp.
Referenced by mitkModelFitStaticParameterMapTest().