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

Function copy

src/IECoreScene/SceneAlgo.cpp:221–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220template<typename LocationFn>
221void copy( const SceneInterface *src, SceneInterface *dst, double time, unsigned int flags, LocationFn &locationFn )
222{
223 locationFn( src, dst, time, flags );
224
225 SceneInterface::NameList childNames;
226 src->childNames( childNames );
227
228 for( const auto &childName : childNames )
229 {
230 SceneInterfacePtr dstChild = dst->child( childName, SceneInterface::CreateIfMissing );
231 ::copy( src->child( childName ).get(), dstChild.get(), time, flags, locationFn );
232 }
233}
234
235} // namespace
236

Callers 5

filterAttrMethod · 0.70
modifyTypedPrimitiveMethod · 0.70
operator()Method · 0.70
mergeFunction · 0.70
operator()Method · 0.70

Calls 3

childNamesMethod · 0.45
childMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected