-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2014 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
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
return ret;
}
+ PyObject *getAllTheProgeny() const throw(INTERP_KERNEL::Exception)
+ {
+ std::vector<const BigMemoryObject *> c(self->getAllTheProgeny());
+ PyObject *ret(PyList_New(c.size()));
+ for(std::size_t i=0;i<c.size();i++)
+ PyList_SetItem(ret,i,SWIG_NewPointerObj(SWIG_as_voidptr(c[i]),SWIGTYPE_p_ParaMEDMEM__BigMemoryObject, 0 | 0 ));
+ return ret;
+ }
+
static std::size_t GetHeapMemorySizeOfObjs(PyObject *objs) throw(INTERP_KERNEL::Exception)
{
std::vector<const BigMemoryObject *> cppObjs;