| 304 | } |
| 305 | |
| 306 | StaticNode* CreateStaticNode(StaticGraph* graph, const std::string& node_name) |
| 307 | { |
| 308 | /* the most important thing is to set the node idx */ |
| 309 | |
| 310 | int node_idx = graph->node_list.size(); |
| 311 | StaticNodePtr node_ptr(new StaticNode()); |
| 312 | |
| 313 | node_ptr->name = node_name; |
| 314 | node_ptr->index = node_idx; |
| 315 | |
| 316 | graph->node_list.emplace_back(node_ptr); |
| 317 | |
| 318 | return node_ptr.get(); |
| 319 | } |
| 320 | |
| 321 | const std::string& GetNodeName(StaticNode* node) |
| 322 | { |
no test coverage detected