libpgplotxx.a (C++ interface to PGPLOT)

◆ operator=()

template<class X>
template<class Y >
Tcontainer& pgplot::HandleOfConst< X >::operator= ( const HandleOfConst< Y > &  h)
inline

Assignement operator that provide transparency for inheritance.

Definition at line 146 of file pghandle.h.

References pgplot::HandleOfConst< X >::Mpcount, and pgplot::HandleOfConst< X >::Mpointer.

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

147  {
148  if (Mpointer == h.Mpointer) return *this;
149  if (--(*Mpcount) == 0) { delete Mpointer; delete Mpcount; }
150  Mpointer=h.Mpointer;
151  Mpcount=h.Mpcount;
152  (*Mpcount)++;
153  return *this;
154  }
int * Mpcount
reference counter
Definition: pghandle.h:170
Tpointer Mpointer
internal pointer to the handled object
Definition: pghandle.h:168
Here is the caller graph for this function: