| 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 | }; |
nothing calls this directly
no test coverage detected