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

Method DebugAsserts

Common/Core/vtkDataArrayValueRange_Generic.h:90–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

ConstValueReferenceMethod · 0.80
ValueReferenceMethod · 0.80
ConstValueIteratorClass · 0.80
ValueIteratorClass · 0.80
DebugIdAssertsMethod · 0.80

Calls 6

GetTupleSizeMethod · 0.95
GetTupleIdMethod · 0.95
GetComponentIdMethod · 0.95
GetValueIdMethod · 0.95
GetNumberOfValuesMethod · 0.45
GetNumberOfTuplesMethod · 0.45

Tested by

no test coverage detected