| 211 | } |
| 212 | |
| 213 | bool 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 | |
| 227 | void CachedReader::clear() |
| 228 | { |