-// Copyright (C) 2007-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
catch (INTERP_KERNEL::Exception& _e) {
// Reraise with SWIG_Python_Raise
SWIG_Python_Raise(SWIG_NewPointerObj((new INTERP_KERNEL::Exception(static_cast< const INTERP_KERNEL::Exception& >(_e))),SWIGTYPE_p_INTERP_KERNEL__Exception,SWIG_POINTER_OWN), "INTERP_KERNEL::Exception", SWIGTYPE_p_INTERP_KERNEL__Exception);
+#ifdef MEDCOUPLING_SWIG4_COMPAT
+ return nullptr;
+#else
SWIG_fail;
+#endif
}
}
class BigMemoryObject
{
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);
+ std::size_t getHeapMemorySize() const;
+ std::string getHeapMemorySizeStr() const;
+ bool isObjectInTheProgeny(const BigMemoryObject *obj) const;
+ std::size_t getHeapMemorySizeWithoutChildren() const;
+ std::string debugHeapMemorySize() const;
+ std::string getClassName() const;
virtual ~BigMemoryObject();
%extend
{
- virtual PyObject *getDirectChildren() const throw(INTERP_KERNEL::Exception)
+ virtual PyObject *getDirectChildren() const
{
std::vector<const BigMemoryObject *> c(self->getDirectChildren());
PyObject *ret(PyList_New(c.size()));
return ret;
}
- PyObject *getAllTheProgeny() const throw(INTERP_KERNEL::Exception)
+ PyObject *getAllTheProgeny() const
{
std::vector<const BigMemoryObject *> c(self->getAllTheProgeny());
PyObject *ret(PyList_New(c.size()));
return ret;
}
- static std::size_t GetHeapMemorySizeOfObjs(PyObject *objs) throw(INTERP_KERNEL::Exception)
+ static std::size_t GetHeapMemorySizeOfObjs(PyObject *objs)
{
std::vector<const BigMemoryObject *> cppObjs;
convertFromPyObjVectorOfObj<const MEDCoupling::BigMemoryObject *>(objs,SWIGTYPE_p_MEDCoupling__BigMemoryObject,"BigMemoryObject",cppObjs);
class GlobalDict
{
public:
- static GlobalDict *GetInstance() throw(INTERP_KERNEL::Exception);
- bool hasKey(const std::string& key) const throw(INTERP_KERNEL::Exception);
- std::string value(const std::string& key) const throw(INTERP_KERNEL::Exception);
- std::vector<std::string> keys() const throw(INTERP_KERNEL::Exception);
- void erase(const std::string& key) throw(INTERP_KERNEL::Exception);
- void clear() throw(INTERP_KERNEL::Exception);
- void setKeyValue(const std::string& key, const std::string& value) throw(INTERP_KERNEL::Exception);
- void setKeyValueForce(const std::string& key, const std::string& value) throw(INTERP_KERNEL::Exception);
+ static GlobalDict *GetInstance();
+ bool hasKey(const std::string& key) const;
+ std::string value(const std::string& key) const;
+ std::vector<std::string> keys() const;
+ void erase(const std::string& key);
+ void clear();
+ void setKeyValue(const std::string& key, const std::string& value);
+ void setKeyValueForce(const std::string& key, const std::string& value);
private:
GlobalDict();
public:
return false;
#endif
}
+
+ bool MEDCouplingUse64BitIDs()
+ {
+#ifndef MEDCOUPLING_USE_64BIT_IDS
+ return false;
+#else
+ return true;
+#endif
+ }
std::string MEDCouplingCompletionScript()
{