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

◆ write_access()

template<class T>
T& aff::ConstSharedHeap< T >::write_access ( const Tsubscript i) const
inlineprotectedinherited

write access to data

Definition at line 213 of file sharedheap.h.

References AFF_assert.

214  {
215 #ifdef AFF_INDEXCHECK
216  AFF_assert(((i<Tsubscript(Mheapstruct->Msize)) && (i>=0)),
217  "SharedHeap: illegal index position!");
218 #endif
219  return(Mheapstruct->Mheap[i]);
220  }
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