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

Method GetDimensionCurrentIndex

IO/NetCDF/vtkMPASReader.cxx:2884–2895  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2882
2883//------------------------------------------------------------------------------
2884int vtkMPASReader::GetDimensionCurrentIndex(const std::string& dim)
2885{
2886 this->UpdateDimensions();
2887
2888 typedef Internal::DimMetaDataMap::const_iterator Iter;
2889 Iter it = this->Internals->dimMetaDataMap.find(dim);
2890 if (it == this->Internals->dimMetaDataMap.end())
2891 {
2892 return -1;
2893 }
2894 return static_cast<int>(it->second.curIdx);
2895}
2896
2897//------------------------------------------------------------------------------
2898void vtkMPASReader::SetDimensionCurrentIndex(const std::string& dim, int idx)

Callers 1

GetVerticalLevelMethod · 0.95

Calls 3

UpdateDimensionsMethod · 0.95
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected