MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / initializeCache

Method initializeCache

DAEValidator/library/src/Dae.cpp:298–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 }
297
298 void Dae::initializeCache() const
299 {
300 if (!mCacheInitialized)
301 {
302 mCacheInitialized = true;
303
304 if (auto root_node = root())
305 {
306 const auto & nodes = root_node.selectNodes("//*[@id]");
307 for (const auto & node : nodes)
308 {
309 string id = node.attribute("id").value();
310 mIdCache.insert(id);
311 }
312 }
313 }
314 }
315}

Callers

nothing calls this directly

Calls 3

rootFunction · 0.85
valueMethod · 0.80
attributeMethod · 0.80

Tested by

no test coverage detected