- MEDCOUPLING_EXPORT std::size_t getHeapMemorySize() const;
- MEDCOUPLING_EXPORT std::string getHeapMemorySizeStr() const;
- MEDCOUPLING_EXPORT virtual std::size_t getHeapMemorySizeWithoutChildren() const = 0;
- MEDCOUPLING_EXPORT virtual std::vector<const BigMemoryObject *> getDirectChildren() const = 0;
- MEDCOUPLING_EXPORT virtual ~BigMemoryObject();
+ std::size_t getHeapMemorySize() const;
+ std::string getHeapMemorySizeStr() const;
+ std::vector<const BigMemoryObject *> getDirectChildren() const;
+ std::vector<const BigMemoryObject *> getAllTheProgeny() const;
+ bool isObjectInTheProgeny(const BigMemoryObject *obj) const;
+ static std::size_t GetHeapMemorySizeOfObjs(const std::vector<const BigMemoryObject *>& objs);
+ virtual std::string getClassName() const { return "BigMemoryObject"; }
+ virtual std::size_t getHeapMemorySizeWithoutChildren() const = 0;
+ virtual std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const = 0;
+ std::string debugHeapMemorySize() const;
+ virtual ~BigMemoryObject();
+ private:
+ static std::size_t GetHeapMemoryOfSet(std::set<const BigMemoryObject *>& s1, std::set<const BigMemoryObject *>& s2);