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

◆ operator=()

template<typename T >
ConstSharedHeap< T > & aff::ConstSharedHeap< T >::operator= ( const Tcontainer sharedheap)
inline

Copy representation to share heap.

copy representation by exchanging counted reference

Definition at line 167 of file sharedheap_def.h.

References aff::ConstSharedHeap< T >::Mheapstruct.

168  {
169  if (Mheapstruct != sharedheap.Mheapstruct)
170  {
171  if (--(Mheapstruct->Mnref) < 1)
172  {
173  delete Mheapstruct;
174  }
175  Mheapstruct=sharedheap.Mheapstruct;
176  ++(Mheapstruct->Mnref);
177  }
178  return(*this);
179  }
Theapstruct * Mheapstruct
shared heap structure
Definition: sharedheap.h:229
Tsize Mnref
number of referencing instances
Definition: sharedheap.h:114