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

Method cached

src/IECore/CachedReader.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool CachedReader::cached( const std::string &file ) const
214{
215 {
216 /// Check if the file failed before...
217 MemberData::FileErrors::const_accessor cit;
218 if ( m_data->m_fileErrors.find( cit, file ) )
219 {
220 return false;
221 }
222 }
223
224 return static_cast<bool>( m_data->m_cache.get( PARAM(file), MemberData::Cache::NullIfMissing ) );
225}
226
227void CachedReader::clear()
228{

Callers 4

testMethod · 0.95
testChangeSearchPathsMethod · 0.95
testEraseAndCachedMethod · 0.80
containsMethod · 0.80

Calls 2

findMethod · 0.45
getMethod · 0.45

Tested by 1

testEraseAndCachedMethod · 0.64