| 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 | { |
nothing calls this directly
no test coverage detected