MCPcopy Create free account
hub / github.com/MITK/MITK / AddParameter

Method AddParameter

Modules/ModelFit/src/Common/mitkModelFitInfo.cpp:25–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <mitkModelFitResultRelationRule.h>
24
25void mitk::modelFit::ModelFitInfo::AddParameter(Parameter::Pointer p)
26{
27 if (p.IsNull())
28 {
29 mitkThrow() << "Given parameter must not be NULL";
30 }
31
32 if (GetParameter(p->name, p->type).IsNull())
33 {
34 MITK_DEBUG << "Adding parameter '" << p->name << "with type " << p->type
35 << "' to modelFit '" << uid << "'.";
36
37 LockType lock(mutex);
38 parameterList.push_back(p);
39 }
40 else
41 {
42 MITK_DEBUG << "Parameter '" << p->name << "' of modelFit '" << uid
43 << "' already exists. Aborting.";
44 }
45}
46
47mitk::modelFit::Parameter::ConstPointer
48mitk::modelFit::ModelFitInfo::GetParameter(const std::string& name,

Callers 3

CheckModelFitInfoMethod · 0.45
CreateFitInfoFromNodeMethod · 0.45

Calls 2

GetParameterFunction · 0.85
IsNullMethod · 0.45

Tested by 1

CheckModelFitInfoMethod · 0.36