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

Function getRecursive

src/IECorePython/LRUCacheBinding.cpp:247–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246template<typename Cache>
247int getRecursive( int key, size_t &cost )
248{
249 cost = 1;
250 switch( key )
251 {
252 case 0 :
253 return 0;
254 case 1 :
255 case 2 :
256 return 1;
257 default :
258 Cache &c = recursiveCache<Cache>();
259 return c.get( key - 1 ) + c.get( key - 2 );
260 }
261}
262
263template<typename Cache>
264Cache &recursiveCache()

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected