------------------------------------------------------------------------------
| 186 | |
| 187 | //------------------------------------------------------------------------------ |
| 188 | bool vtkAMRDataSetCache::HasAMRBlock(int compositeIdx) |
| 189 | { |
| 190 | vtkTimerLog::MarkStartEvent("AMRCache::CheckIfBlockExists"); |
| 191 | |
| 192 | if (this->Cache.empty()) |
| 193 | { |
| 194 | vtkTimerLog::MarkEndEvent("AMRCache::CheckIfBlockExists"); |
| 195 | return false; |
| 196 | } |
| 197 | |
| 198 | if (this->Cache.find(compositeIdx) != this->Cache.end()) |
| 199 | { |
| 200 | vtkTimerLog::MarkEndEvent("AMRCache::CheckIfBlockExists"); |
| 201 | return true; |
| 202 | } |
| 203 | |
| 204 | vtkTimerLog::MarkEndEvent("AMRCache::CheckIfBlockExists"); |
| 205 | return false; |
| 206 | } |
| 207 | VTK_ABI_NAMESPACE_END |
no test coverage detected