12#ifndef PYROOT_TMEMORYREGULATOR_H
13#define PYROOT_TMEMORYREGULATOR_H
45#include <unordered_map>
49typedef std::unordered_map<Cppyy::TCppObject_t, Cppyy::TCppType_t>
ObjectMap_t;
static std::pair< bool, bool > RegisterHook(Cppyy::TCppObject_t, Cppyy::TCppType_t)
Register a hook that Cppyy runs when constructing an object.
TMemoryRegulator()
Constructor.
virtual void RecursiveRemove(TObject *)
Get the class id of the TObject being deleted and run Cppyy's RecursiveRemove.
static ObjectMap_t fObjectMap
void ClearProxiedObjects()
Clean up all tracked objects.
static std::pair< bool, bool > UnregisterHook(Cppyy::TCppObject_t, Cppyy::TCppType_t)
Register a hook that Cppyy runs when deleting an object.
Mother of all ROOT objects.
std::unordered_map< Cppyy::TCppObject_t, Cppyy::TCppType_t > ObjectMap_t