TF++, Miscellaneous classes and modules in C++:

◆ operator=()

template<class X>
ConstHandle& tfxx::ConstHandle< X >::operator= ( const ConstHandle< X > &  h)
inline

operator #tfxx::THandle<class X>::operator=()# book-keeping asignment operator

Definition at line 148 of file handle.h.

References tfxx::ConstHandle< X >::Mpcount, and tfxx::ConstHandle< X >::Mrep.

Referenced by tfxx::Handle< X >::operator=().

149  {
150  if (Mrep == h.Mrep) return *this;
151  if (--(*Mpcount) == 0) { delete Mrep; delete Mpcount; }
152  Mrep=h.Mrep;
153  Mpcount=h.Mpcount;
154  (*Mpcount)++;
155  return *this;
156  }
Tmutableobject * Mrep
internal pointer to the handled object
Definition: handle.h:167
int * Mpcount
usage counter
Definition: handle.h:169
Here is the caller graph for this function: