MCPcopy Create free account
hub / github.com/ImageEngine/cortex / operator()

Method operator()

src/IECorePython/LRUCacheBinding.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 object operator() ( object key, LRUCache<object, object>::Cost &cost )
80 {
81 try
82 {
83 tuple t = extract<tuple>( getter( key ) );
84 cost = extract<LRUCache<object, object>::Cost>( t[1] );
85 return t[0];
86 }
87
88 catch( const boost::python::error_already_set & )
89 {
90 IECorePython::ExceptionAlgo::translatePythonException();
91 }
92
93 }
94
95 object getter;
96};

Callers

nothing calls this directly

Calls 1

translatePythonExceptionFunction · 0.85

Tested by

no test coverage detected