AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ check_consistency()

template<class T >
void aff::ConstSeries< T >::check_consistency ( ) const
private

check consistency between shape and representation

check shape and representation

Definition at line 402 of file series.h.

References AFF_assert.

Referenced by aff::ConstSeries< T >::ConstSeries().

403  {
404  AFF_assert((this->Tshape::offset(this->first())>=0),
405  "ERROR (ConstSeries): invalid shape");
406  AFF_assert((this->Tshape::offset(this->last())<
408  "ERROR (ConstSeries): shape and representation are inconsistent");
409  }
const Tsize & size() const
Definition: sharedheap.h:179
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
Trepresentation Mrepresentation
my memory representation
Definition: series.h:253
const Tsubscript & first() const
return first legal index
Definition: linearshape.h:105
Tsubscript offset(const Tsubscript &i) const
return offset in representation for indes i
Definition: linearshape.h:109
ptrdiff_t Tsubscript
Type to hold an array&#39;s subscript value.
Definition: types.h:53
const Tsubscript & last() const
return last legal index
Definition: linearshape.h:107
Here is the caller graph for this function: