| 321 | } |
| 322 | |
| 323 | bool vtkXArrayAccessor::IsContiguous(int varid, const size_t* startp, const size_t* countp) |
| 324 | { |
| 325 | // the last dim is the most rapidly varying |
| 326 | int ndims = static_cast<int>(this->VarDims[varid].size()); |
| 327 | int contiguousDims = 0; |
| 328 | for (int i = ndims - 1; i >= 0; --i) |
| 329 | { |
| 330 | if (startp[i] == 0 && countp[i] == this->DimLen[this->VarDims[varid][i]]) |
| 331 | { |
| 332 | ++contiguousDims; |
| 333 | } |
| 334 | else |
| 335 | { |
| 336 | break; |
| 337 | } |
| 338 | } |
| 339 | return (contiguousDims >= ndims - 1); |
| 340 | } |
| 341 | |
| 342 | std::vector<size_t> vtkXArrayAccessor::GetDimIncrement(int varid) |
| 343 | { |
no test coverage detected