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

Method promoteNode

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

Source from the content-addressed store, hash-verified

47}
48
49void NodeTree::promoteNode(NodeID nid, int kids, tree::NodeStatus status, Label label)
50{
51
52 /// find parent and kid's position
53 const auto pid = getParent(nid);
54 const auto alt = getAlternative(nid);
55
56 promoteNode(pid, alt, kids, status, label);
57}
58
59NodeID NodeTree::createRoot(int kids, Label label)
60{

Callers 14

handleNodeMethod · 0.80
copy_tree_intoFunction · 0.80
create_pentagonFunction · 0.80
runMethod · 0.80
binary_tree_executionFunction · 0.80
nary_executionFunction · 0.80
larger_nary_executionFunction · 0.80
simple_nary_executionFunction · 0.80
build_for_comparison_aFunction · 0.80
build_for_comparison_bFunction · 0.80

Calls 11

calculate_depthFunction · 0.85
is_closingFunction · 0.85
setStatusMethod · 0.80
addChildrenMethod · 0.80
add_undeterminedMethod · 0.80
inform_depthMethod · 0.80
subtract_undeterminedMethod · 0.80
addNodeMethod · 0.80
printFunction · 0.50
getRootMethod · 0.45
getChildMethod · 0.45

Tested by 10

binary_tree_executionFunction · 0.64
nary_executionFunction · 0.64
larger_nary_executionFunction · 0.64
simple_nary_executionFunction · 0.64
build_for_comparison_aFunction · 0.64
build_for_comparison_bFunction · 0.64
tree_buildingFunction · 0.64
hiding_failed_testFunction · 0.64