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

Function GetCellsOfType

Common/DataModel/vtkCellGrid.h:245–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 */
244 template <typename CellType>
245 const CellType* GetCellsOfType() const
246 {
247 auto it = this->Cells.find(vtkStringToken(vtk::TypeName<CellType>()).GetId());
248 if (it == this->Cells.end())
249 {
250 return nullptr;
251 }
252 return static_cast<const CellType*>(it->second.GetPointer());
253 }
254 template <typename CellType>
255 CellType* GetCellsOfType()
256 {

Callers

nothing calls this directly

Calls 5

vtkStringTokenFunction · 0.50
findMethod · 0.45
GetIdMethod · 0.45
endMethod · 0.45
GetPointerMethod · 0.45

Tested by

no test coverage detected