Returns the node in "graph" with the given name. REQUIRES: "graph" was produced by the most recent call to BuildGraph.
| 313 | // |
| 314 | // REQUIRES: "graph" was produced by the most recent call to BuildGraph. |
| 315 | Node* GetNodeByName(const Graph& graph, const string& name) { |
| 316 | const auto search = nodes_by_name_.find(name); |
| 317 | CHECK(search != nodes_by_name_.end()) << "Unknown node name: " << name; |
| 318 | return graph.FindNodeId(search->second); |
| 319 | } |
| 320 | |
| 321 | protected: |
| 322 | std::vector<std::unique_ptr<Device>> local_devices_; |
nothing calls this directly
no test coverage detected