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

Method GetIndexFromArrayName

IO/AMR/vtkAMREnzoReader.cxx:81–89  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

79
80//------------------------------------------------------------------------------
81int vtkAMREnzoReader::GetIndexFromArrayName(std::string arrayName)
82{
83 char stringIdx[2];
84 stringIdx[0] = arrayName.at(arrayName.size() - 2);
85 stringIdx[1] = '\0';
86 int value = 0;
87 vtk::from_chars(stringIdx, stringIdx + 2, value);
88 return value;
89}
90
91//------------------------------------------------------------------------------
92double vtkAMREnzoReader::GetConversionFactor(const std::string& name)

Callers 2

ParseLabelMethod · 0.95
ParseCFactorMethod · 0.95

Calls 3

from_charsFunction · 0.85
atMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected