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

Method childrenCount

cp-profiler/src/cpprofiler/tree/node.cpp:37–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37int Node::childrenCount() const
38{
39
40 auto tag = getTag();
41
42 switch (tag)
43 {
44 case Tag::LEAF:
45 return 0;
46 case Tag::ONE_CHILD:
47 return 1;
48 case Tag::TWO_CHILDREN:
49 return 2;
50 default:
51 return m_noOfChildren;
52 }
53}
54
55void Node::setNumberOfChildren(int n)
56{

Callers 15

save_nodesFunction · 0.45
saveSearchMethod · 0.45
nodes_belowFunction · 0.45
pre_order_applyFunction · 0.45
is_right_most_childFunction · 0.45
pre_orderFunction · 0.45
post_orderFunction · 0.45
calc_subtree_sizesFunction · 0.45
copy_tree_intoFunction · 0.45
runMethod · 0.45
linkLocationsPentagonFunction · 0.45
initOrigLocationsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected