X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingRefCountObject.cxx;h=443ae2cd8ff584b590f3cd78cd9cea3fec935eb7;hb=c6fa7c58b5a305b1752e788b930c68cedac29b64;hp=b4ae45f67b3c2de1fa79f62c43e71545dec1ea0d;hpb=f1a947b32a36d8dc8e3079b25305bb50e8cb59a0;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingRefCountObject.cxx b/src/MEDCoupling/MEDCouplingRefCountObject.cxx index b4ae45f67..443ae2cd8 100644 --- a/src/MEDCoupling/MEDCouplingRefCountObject.cxx +++ b/src/MEDCoupling/MEDCouplingRefCountObject.cxx @@ -54,6 +54,15 @@ RefCountObject::RefCountObject(const RefCountObject& other):_cnt(1) { } +/*! + * Do nothing here ! It is not a bug ( I hope :) ) because all subclasses that + * copies using operator= should not copy the ref counter of \a other ! + */ +RefCountObject& RefCountObject::operator=(const RefCountObject& other) +{ + return *this; +} + bool RefCountObject::decrRef() const { bool ret=((--_cnt)==0); @@ -67,6 +76,11 @@ void RefCountObject::incrRef() const _cnt++; } +int RefCountObject::getRCValue() const +{ + return _cnt; +} + RefCountObject::~RefCountObject() { }