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

Method has_key

src/IECorePython/CompoundDataBinding.cpp:232–239  ·  view source on GitHub ↗

binding for has_key method

Source from the content-addressed store, hash-verified

230
231 /// binding for has_key method
232 static bool
233 has_key( CompoundData &x, PyObject *i )
234 {
235 key_type key = convertKey( x, i );
236 const CompoundDataMap &xData = x.readable();
237 CompoundDataMap::const_iterator value = xData.find( key );
238 return ( value != xData.end() );
239 }
240
241 /// binding for items method
242 static list

Callers 8

__parameterisedSetItemOpFunction · 0.80
__findClassesWalkFunction · 0.80
copyClassesFunction · 0.80
testDictConstructorMethod · 0.80
testNoneKeyMethod · 0.80
testHeaderMethod · 0.80
testResizeMethod · 0.80
testSearchMethod · 0.80

Calls 3

readableMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected