MCPcopy Create free account
hub / github.com/ImageEngine/cortex / findClasses

Function findClasses

python/IECore/ParameterAlgo.py:60–64  ·  view source on GitHub ↗
( rootParameter, classTypeFilter=(IECore.Parameterised,), classNameFilter="*" )

Source from the content-addressed store, hash-verified

58# The classNameFilter parameter specified an optional string which will be
59# used with fnmatch to filter based on the class path.
60def findClasses( rootParameter, classTypeFilter=(IECore.Parameterised,), classNameFilter="*" ) :
61
62 result = []
63 __findClassesWalk( rootParameter, [], [], classTypeFilter, re.compile( fnmatch.translate( classNameFilter ) ), result )
64 return result
65
66def __findClassesWalk( parameter, parameterPath, uiPath, classTypeFilter, classNameFilter, result ) :
67

Callers

nothing calls this directly

Calls 2

__findClassesWalkFunction · 0.85
compileMethod · 0.80

Tested by

no test coverage detected