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

Method hasInheritanceCycle

source/MaterialXCore/Element.cpp:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374bool Element::hasInheritanceCycle() const
375{
376 try
377 {
378 for (ConstElementPtr elem : traverseInheritance()) { }
379 }
380 catch (ExceptionFoundCycle&)
381 {
382 return true;
383 }
384 return false;
385}
386
387bool Element::isEquivalent(ConstElementPtr rhs, const ElementEquivalenceOptions& options, string* message) const
388{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected