MCPcopy Create free account
hub / github.com/Kitware/VTK / HasAMRBlock

Method HasAMRBlock

IO/AMR/vtkAMRDataSetCache.cxx:188–206  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

186
187//------------------------------------------------------------------------------
188bool 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}
207VTK_ABI_NAMESPACE_END

Callers 8

InsertAMRBlockMethod · 0.95
GetAMRBlockCellDataMethod · 0.95
GetAMRBlockMethod · 0.95
HasAMRBlockCellDataMethod · 0.95
HasAMRBlockPointDataMethod · 0.95
GetAMRBlockMethod · 0.80

Calls 3

emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected