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

Method CellTypeArray

Common/DataModel/vtkCellGrid.cxx:425–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425std::vector<vtkStringToken> vtkCellGrid::CellTypeArray() const
426{
427#if defined(_MSC_VER) && _MSC_VER >= 1930 && _MSC_VER < 1940 /*17.4+*/
428 // MSVC 2022 shows LNK1161 when an exported method uses thread_local in its implementation.
429 // See https://github.com/pytorch/pytorch/issues/87957 for more. We omit the
430 // thread_local here, which makes this method non-threadsafe on Windows, which
431 // should be OK in most cases.
432 static std::vector<vtkStringToken> cellTypes;
433#else
434 static thread_local std::vector<vtkStringToken> cellTypes;
435#endif
436 cellTypes.clear();
437 this->CellTypes(cellTypes);
438 return cellTypes;
439}
440
441std::vector<std::string> vtkCellGrid::GetCellTypes() const
442{

Callers 5

GetCellTypesMethod · 0.95
ToJSONMethod · 0.80
ReadMeshMethod · 0.80
UpdateMetadataMethod · 0.80
ApplyDisplacementsMethod · 0.80

Calls 2

CellTypesMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected