MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / getRoot

Method getRoot

source/MaterialXCore/Element.cpp:331–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331ElementPtr Element::getRoot()
332{
333 ElementPtr root = _root.lock();
334 if (!root)
335 {
336 throw ExceptionOrphanedElement("Requested root of orphaned element: " + asString());
337 }
338 return root;
339}
340
341ConstElementPtr Element::getRoot() const
342{

Callers 2

Element.cppFile · 0.80
Element.hFile · 0.80

Calls 2

asStringFunction · 0.85
lockMethod · 0.80

Tested by

no test coverage detected