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

Method ClearRangeCache

Common/DataModel/vtkCellGrid.cxx:577–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void vtkCellGrid::ClearRangeCache(const std::string& attributeName)
578{
579 if (attributeName.empty())
580 {
581 this->RangeCache.clear();
582 return;
583 }
584 auto* att = this->GetCellAttributeByName(attributeName);
585 if (!att)
586 {
587 return;
588 }
589 auto it = this->RangeCache.find(att);
590 if (it == this->RangeCache.end())
591 {
592 return;
593 }
594 this->RangeCache.erase(it);
595}
596
597std::set<int> vtkCellGrid::GetCellAttributeIds() const
598{

Callers 1

checkRangeForFileMethod · 0.80

Calls 6

emptyMethod · 0.45
clearMethod · 0.45
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 1

checkRangeForFileMethod · 0.64