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

Method addExtraChild

cp-profiler/src/cpprofiler/tree/structure.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63NodeID Structure::addExtraChild(NodeID pid)
64{
65
66 const auto alt = childrenCount(pid);
67
68 /// make room for another child
69 nodes_[pid]->addChild();
70
71 auto kid = createChild(pid, alt, 0);
72 return kid;
73}
74
75void Structure::addChildren(NodeID nid, int kids)
76{

Callers 3

handleNodeMethod · 0.45
growing_treeFunction · 0.45
restart_treeFunction · 0.45

Calls 1

addChildMethod · 0.80

Tested by 2

growing_treeFunction · 0.36
restart_treeFunction · 0.36