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

Function retrieve

src/IECorePython/ObjectPoolBinding.cpp:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56ObjectPtr retrieve( const ObjectPool &pool, MurmurHash key, bool _copy )
57{
58 ConstObjectPtr o = pool.retrieve(key);
59
60 if ( !o )
61 {
62 return nullptr;
63 }
64
65 if ( _copy )
66 {
67 return o->copy();
68 }
69
70 return const_cast< Object * >(o.get());
71}
72
73void bindObjectPool()
74{

Callers

nothing calls this directly

Calls 3

retrieveMethod · 0.80
copyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected