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

Method createNode

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

Source from the content-addressed store, hash-verified

42}
43
44NodeID Structure::createNode(NodeID pid, int kids)
45{
46 const auto nid = NodeID{static_cast<int>(nodes_.size())};
47 nodes_.push_back(std::unique_ptr<Node>{new Node(pid, kids)});
48 return nid;
49}
50
51void Structure::db_createNode(NodeID nid, NodeID pid, int kids)
52{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected