66 #ifndef AFF_SHAREDHEAP_H_VERSION 68 #define AFF_SHAREDHEAP_H_VERSION \ 69 "AFF_SHAREDHEAP_H V1.8" 180 {
return(Mheapstruct->Msize); }
186 {
return(Mheapstruct->Mheap); }
192 #ifdef AFF_INDEXCHECK 194 "SharedHeap: illegal index position!");
196 return(Mheapstruct->Mheap[i]);
215 #ifdef AFF_INDEXCHECK 217 "SharedHeap: illegal index position!");
219 return(Mheapstruct->Mheap[i]);
226 {
return(Mheapstruct->Mheap); }
279 Tbase(pointer, size) { }
283 Tbase(sharedheap) { }
292 using Tbase::operator[];
298 {
return(this->Tbase::write_access(i)); }
304 {
return(this->Tbase::writable_array()); }
314 #ifndef AFF_NO_DEFINITIONS 318 #endif // AFF_SHAREDHEAP_H_VERSION (includeguard) Root namespace of library.
aff::util::SHeap< T > Theapstruct
Type of SHeap struct to be used in any case.
some typedefs we refer to
SharedHeap(const Tsize &size)
Allocate new heap memory.
bool Mextern
true if memory allocation is handled elsewhere
T * Tpointer
Type of pointer to element.
SharedHeap(const Tcontainer &sharedheap)
Copy representation to share heap.
Tbase Tcontainer_of_const
Type of const version of SharedHeap.
const Tsize & size() const
aff::ConstSharedHeap< T > Tcontainer
this class
Theapstruct * Mheapstruct
shared heap structure
const T & operator[](const Tsubscript &i) const
Index operator (always inline).
A template class to share heap memory for different array projections.
Tsize Msize
size (number of elements) of array
aff::ConstSharedHeap< T > Tcontainer_of_const
Type of const version of SharedHeap.
exceptions and error handling macros (prototypes)
shared heap definitions (prototypes)
T * Mheap
shared raw array on heap
const T & Treference
Type of reference to element.
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
T & Treference
Type of reference to element.
aff::ConstSharedHeap< T > Tcoc
short for container of const
const T * Tpointer
Type of pointer to element.
This is the base class for const elements.
T & write_access(const Tsubscript &i) const
write access to data
aff::ConstSharedHeap< T > Tbase
base class
T & operator[](const Tsubscript &i) const
delegate to base
A structure to be shared between different SharedHeap instances.
aff::SharedHeap< T > Tcontainer
this class
~SharedHeap()
Deallocate heap memory if this is the last referencing instance.
SharedHeap(T *pointer, const Tsize &size)
Create representation for externally managed memory.
ptrdiff_t Tsubscript
Type to hold an array's subscript value.
const T Tvalue
Element type.
SharedHeap()
Create from nothing.
size_t Tsize
Type to hold the size of an array dimension.
Tsize Mnref
number of referencing instances
Tbase Tcoc
short for container of const