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

Method getClasses

python/IECore/ClassVectorParameter.py:59–69  ·  view source on GitHub ↗
( self, withClassLoaderArgs=False )

Source from the content-addressed store, hash-verified

57 # as the child parameters holding them. If withClassLoaderArgs is True then a list of
58 # tuples is returned, with each tuple being of the form ( classInstance, parameterName, className, classVersion ).
59 def getClasses( self, withClassLoaderArgs=False ) :
60
61 result = []
62 for k in self.keys() :
63 if withClassLoaderArgs :
64 instance = self.__namesToInstances[k]
65 result.append( ( instance[0], k, instance[1], instance[2] ) )
66 else :
67 result.append( self.__namesToInstances[k][0] )
68
69 return result
70
71 ## Sets the classes held as children. Classes must be a list of tuples of the form
72 # ( parameterName, className, classVersion ). If any tuple in the list matches an existing

Callers 15

testConstructorMethod · 0.95
testSetAndGetClassesMethod · 0.95
testInsertClassesMethod · 0.95
testRemoveClassesMethod · 0.95
testReorderClassesMethod · 0.95
testChangeClassesMethod · 0.95
testSerialiseAndParseMethod · 0.95
__findClassesWalkFunction · 0.80
copyClassesFunction · 0.80

Calls 2

appendMethod · 0.80
keysMethod · 0.45

Tested by 11

testConstructorMethod · 0.76
testSetAndGetClassesMethod · 0.76
testInsertClassesMethod · 0.76
testRemoveClassesMethod · 0.76
testReorderClassesMethod · 0.76
testChangeClassesMethod · 0.76
testSerialiseAndParseMethod · 0.76
testFindClassesMethod · 0.64
testCopyClassesMethod · 0.64