2 #include <State/Message.hpp>
4 #include <Process/State/MessageNode.hpp>
10 #include <score/model/Identifier.hpp>
15 enum class ProcessPosition
26 void findAndReplaceAddresses(
31 void updateTreeWithMessageList(
35 void updateTreeWithRemovedProcess(
41 void updateTreeWithRemovedUserMessage(
44 void updateTreeWithRemovedNode(
54 #include <Scenario/Document/State/ItemModel/MessageItemModel.hpp>
58 inline void updateModelWithMessageList(MessageItemModel& model, State::MessageList lst)
60 model.beginResetModel();
61 updateTreeWithMessageList(model.rootNode(), std::move(lst));
62 model.endResetModel();
65 inline void renameAddress(
69 model.beginResetModel();
70 renameAddress(model.rootNode(), oldAddr, newAddr);
71 model.endResetModel();
75 inline void updateModelWithMessageList(
76 MessageItemModel& model, State::MessageList lst,
79 model.beginResetModel();
80 updateTreeWithMessageList(model.rootNode(), std::move(lst), proc, pos);
81 model.endResetModel();
84 inline void updateModelWithRemovedProcess(
87 model.beginResetModel();
88 updateTreeWithRemovedProcess(model.rootNode(), proc, pos);
89 model.endResetModel();
92 inline void updateModelWithRemovedInterval(MessageItemModel& model, ProcessPosition pos)
94 model.beginResetModel();
95 updateTreeWithRemovedInterval(model.rootNode(), pos);
96 model.endResetModel();
99 inline void updateModelWithRemovedUserMessage(
102 model.beginResetModel();
103 updateTreeWithRemovedUserMessage(model.rootNode(), addr);
104 model.endResetModel();
110 model.beginResetModel();
111 updateTreeWithRemovedNode(model.rootNode(), addr);
112 model.endResetModel();
115 inline void removeAllUserMessages(MessageItemModel& model)
117 model.beginResetModel();
118 removeAllUserMessages(model.rootNode());
119 model.endResetModel();
The id_base_t class.
Definition: Identifier.hpp:57
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: Address.hpp:108
The Address struct.
Definition: Address.hpp:58