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

◆ operator[]()

template<class T>
const T& aff::ConstSharedHeap< T >::operator[] ( const Tsubscript i) const
inline

Index operator (always inline).

Definition at line 190 of file sharedheap.h.

References AFF_assert.

191  {
192 #ifdef AFF_INDEXCHECK
193  AFF_assert(((i<Tsubscript(Mheapstruct->Msize)) && (i>=0)),
194  "SharedHeap: illegal index position!");
195 #endif
196  return(Mheapstruct->Mheap[i]);
197  }
Theapstruct * Mheapstruct
shared heap structure
Definition: sharedheap.h:229
Tsize Msize
size (number of elements) of array
Definition: sharedheap.h:113
T * Mheap
shared raw array on heap
Definition: sharedheap.h:112
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
ptrdiff_t Tsubscript
Type to hold an array&#39;s subscript value.
Definition: types.h:53