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

Method getMatchingNodeDefs

source/MaterialXCore/Document.cpp:378–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378vector<NodeDefPtr> Document::getMatchingNodeDefs(const string& nodeName) const
379{
380 // Recurse to data library if present.
381 vector<NodeDefPtr> matchingNodeDefs = hasDataLibrary() ?
382 getDataLibrary()->getMatchingNodeDefs(nodeName) :
383 vector<NodeDefPtr>();
384
385 // Append all nodedefs matching the given node name.
386 vector<NodeDefPtr> localNodeDefs = _cache->getMatchingNodeDefs(nodeName);
387 matchingNodeDefs.insert(matchingNodeDefs.end(), localNodeDefs.begin(), localNodeDefs.end());
388
389 return matchingNodeDefs;
390}
391
392vector<InterfaceElementPtr> Document::getMatchingImplementations(const string& nodeDef) const
393{

Callers 9

buildDocumentFunction · 0.45
addNodeMethod · 0.45
Node.cppFile · 0.45
getShaderNodeDefFunction · 0.45
getNodeDefMethod · 0.45
validateMethod · 0.45
getNodeDefMethod · 0.45
translateShaderMethod · 0.45
getNodeDefMethod · 0.45

Calls 5

hasDataLibraryFunction · 0.85
getDataLibraryFunction · 0.85
insertMethod · 0.80
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected