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

Function getFileSetIndex

IO/EnSight/core/EnSightFile.cxx:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88int getFileSetIndex(int tsIdx, std::shared_ptr<FileSetInfo> info)
89{
90 int currentSum = 0;
91 for (size_t i = 0; i < info->NumberOfSteps.size(); i++)
92 {
93 currentSum += info->NumberOfSteps[i];
94 if (tsIdx < currentSum)
95 {
96 return info->FileNameIndex[i];
97 }
98 }
99 return -1;
100}
101
102bool hasWildcards(const std::string& pattern)
103{

Callers 1

SetTimeStepToReadMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected