X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling_Swig%2FMEDCouplingRefCountObject.i;h=e6ca9aae256c38bf946b63665c11a42cd2cc489b;hb=c5873d1cac2ac6b6becd4d64a76049adc5a44595;hp=0db2e7e7ee9b41bf939ff930d498552398d66d92;hpb=659f8c67d0348350e12fde38fe8c4de1ff95dffe;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i b/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i index 0db2e7e7e..e6ca9aae2 100644 --- a/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i +++ b/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i @@ -68,6 +68,7 @@ namespace ParaMEDMEM public: std::size_t getHeapMemorySize() const throw(INTERP_KERNEL::Exception); std::string getHeapMemorySizeStr() const throw(INTERP_KERNEL::Exception); + bool isObjectInTheProgeny(const BigMemoryObject *obj) const throw(INTERP_KERNEL::Exception); virtual std::size_t getHeapMemorySizeWithoutChildren() const throw(INTERP_KERNEL::Exception); virtual ~BigMemoryObject(); %extend @@ -81,6 +82,15 @@ namespace ParaMEDMEM return ret; } + PyObject *getAllTheProgeny() const throw(INTERP_KERNEL::Exception) + { + std::vector c(self->getAllTheProgeny()); + PyObject *ret(PyList_New(c.size())); + for(std::size_t i=0;i cppObjs;