Salome HOME
MEDReader : End of debugging session.
[tools/medcoupling.git] / src / MEDCoupling / MEDCouplingRefCountObject.cxx
index b4ae45f67b3c2de1fa79f62c43e71545dec1ea0d..443ae2cd8ff584b590f3cd78cd9cea3fec935eb7 100644 (file)
@@ -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()
 {
 }