MCPcopy Create free account
hub / github.com/CMU-SAFARI/ramulator2 / find_component

Method find_component

tests/utils/test_harness.cpp:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176 template <typename T>
177 T* find_component() const {
178 for (auto* component : m_components) {
179 if (auto* typed = dynamic_cast<T*>(component)) {
180 return typed;
181 }
182 }
183 return nullptr;
184 }
185
186 protected:
187 std::string get_name() const override { return "HarnessMemorySystem"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected