| 42 | } |
| 43 | |
| 44 | NodeID 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 | |
| 51 | void Structure::db_createNode(NodeID nid, NodeID pid, int kids) |
| 52 | { |