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

Method FindObjects

src/engine/ConsoleObjects.cpp:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241 }
242
243 std::vector<Object*> FindObjects(char const* regex)
244 {
245 std::vector<Object*> matches;
246 if (auto rx = regex_from_char(regex))
247 {
248 for (auto& it : m_Dictionary)
249 if (std::regex_match(it.first, *rx))
250 matches.push_back(it.second);
251 }
252 return matches;
253 }
254
255 std::string const& GetObjectName(Object const* cobj)
256 {

Callers 1

MatchObjectsFunction · 0.80

Calls 2

regex_from_charFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected