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

Function GetRange

Filters/Sources/vtkPartitionedDataSetSource.cxx:80–93  ·  view source on GitHub ↗

returns [start, end].

Source from the content-addressed store, hash-verified

78
79// returns [start, end].
80std::pair<int, int> GetRange(const int rank, const std::vector<int>& parts)
81{
82 std::pair<int, int> result(0, parts[0]);
83 if (rank == 0)
84 {
85 return result;
86 }
87 for (int cc = 1; cc <= rank; ++cc)
88 {
89 result.first = result.second;
90 result.second += parts[cc];
91 }
92 return result;
93}
94
95}
96

Callers 15

RequestDataMethod · 0.70
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected