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

Method AddTransition

Modules/Core/src/Interactions/mitkStateMachineState.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool mitk::StateMachineState::AddTransition(StateMachineTransition::Pointer transition)
31{
32 for (auto it = m_Transitions.begin(); it != m_Transitions.end(); ++it)
33 {
34 if (transition.GetPointer() == (*it).GetPointer())
35 return false;
36 }
37 m_Transitions.push_back(transition);
38 return true;
39}
40
41mitk::StateMachineState::TransitionVector mitk::StateMachineState::GetTransitionList(const std::string &eventClass,
42 const std::string &eventVariant)

Callers 1

StartElementMethod · 0.80

Calls 3

GetPointerMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected