MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / db_addChild

Method db_addChild

cp-profiler/src/cpprofiler/tree/node_tree.cpp:106–127  ·  view source on GitHub ↗

Note: alt is unnecessary here

Source from the content-addressed store, hash-verified

104
105/// Note: alt is unnecessary here
106void NodeTree::db_addChild(NodeID nid, NodeID pid, int alt, NodeStatus status, Label label)
107{
108 structure_->db_addChild(nid, pid, alt);
109 addEntry(nid);
110
111 node_info_->setStatus(nid, status);
112 setLabel(nid, label);
113
114 emit childrenStructureChanged(pid);
115
116 auto cur_depth = utils::calculate_depth(*this, nid);
117 node_stats_.inform_depth(cur_depth);
118
119 node_stats_.addNode(status);
120
121 if (is_closing(status))
122 closeNode(nid);
123 if (status == NodeStatus::SOLVED)
124 notifyAncestors(nid);
125
126 emit structureUpdated();
127}
128
129void NodeTree::addExtraChild(NodeID pid)
130{

Callers

nothing calls this directly

Calls 5

calculate_depthFunction · 0.85
is_closingFunction · 0.85
setStatusMethod · 0.80
inform_depthMethod · 0.80
addNodeMethod · 0.80

Tested by

no test coverage detected