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

Method clearContent

source/MaterialXCore/Element.cpp:565–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void Element::clearContent()
566{
567 getDocument()->invalidateCache();
568
569 _sourceUri.clear();
570 _attributeMap.clear();
571 _attributeOrder.clear();
572 _childMap.clear();
573 _childOrder.clear();
574}
575
576bool Element::validate(string* message) const
577{

Callers 1

Node.cppFile · 0.45

Calls 3

getDocumentFunction · 0.85
invalidateCacheMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected