MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / FindObject

Method FindObject

src/engine/ConsoleObjects.cpp:219–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 }
218
219 Object* FindObject(std::string_view name)
220 {
221 if (!name.empty())
222 {
223 std::lock_guard<std::mutex> lock(m_Mutex);
224 auto it = m_Dictionary.find(name);
225 if (it != m_Dictionary.end())
226 return it->second;
227 }
228 return nullptr;
229 }
230
231 std::vector<std::string_view> FindObjectNames(char const* regex)
232 {

Callers 1

FindObjectFunction · 0.80

Calls 2

emptyMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected