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

Method items

src/IECorePython/CompoundDataBinding.cpp:242–254  ·  view source on GitHub ↗

binding for items method

Source from the content-addressed store, hash-verified

240
241 /// binding for items method
242 static list
243 items( CompoundData &x )
244 {
245 list newList;
246 const CompoundDataMap &xData = x.readable();
247 CompoundDataMap::const_iterator iterX = xData.begin();
248 while ( iterX != xData.end() )
249 {
250 newList.append( boost::python::make_tuple( iterX->first.value(), iterX->second ) );
251 iterX++;
252 }
253 return newList;
254 }
255
256 /// binding for keys method
257 static list

Callers 1

constructorFunction · 0.45

Calls 5

readableMethod · 0.80
appendMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected