| 88 | |
| 89 | template <typename ArrayType> |
| 90 | VTK_ITER_INLINE void DebugAsserts(ArrayType* array) const noexcept |
| 91 | { |
| 92 | (void)array; |
| 93 | VTK_ITER_ASSERT(array != nullptr, "Invalid array."); |
| 94 | VTK_ITER_ASSERT(this->ValueId == this->TupleId * this->GetTupleSize() + this->ComponentId, |
| 95 | "Inconsistent internal state in IdStorage."); |
| 96 | VTK_ITER_ASSERT(this->GetTupleSize() > 0, "Invalid number of components."); |
| 97 | VTK_ITER_ASSERT( |
| 98 | this->ValueId >= 0 && this->ValueId <= array->GetNumberOfValues(), "Invalid value id."); |
| 99 | VTK_ITER_ASSERT(this->GetTupleId() >= 0 && this->GetTupleId() <= array->GetNumberOfTuples(), |
| 100 | "Invalid tuple id."); |
| 101 | VTK_ITER_ASSERT(this->GetComponentId() >= 0 && |
| 102 | (this->GetComponentId() < this->GetTupleSize() || |
| 103 | (this->GetComponentId() == this->GetTupleSize() && |
| 104 | this->GetTupleId() == array->GetNumberOfTuples())), |
| 105 | "Invalid component id."); |
| 106 | VTK_ITER_ASSERT(this->GetValueId() >= 0 && this->GetValueId() <= array->GetNumberOfValues(), |
| 107 | "Invalid value id."); |
| 108 | } |
| 109 | |
| 110 | VTK_ITER_INLINE |
| 111 | IdStorage& operator++() noexcept // prefix |
no test coverage detected