31 #ifndef _GALOIS_DIST_GLOBAL_OBJECT_H
32 #define _GALOIS_DIST_GLOBAL_OBJECT_H
46 static std::vector<uintptr_t> allobjs;
74 objID = allobjs.size();
75 allobjs.push_back(reinterpret_cast<uintptr_t>(ptr));
89 #endif //_GALOIS_DIST_GLOBAL_OBJECT_H
uint32_t idForSelf() const
Returns own global id.
Definition: GlobalObj.h:83
static uintptr_t ptrForObj(unsigned oid)
Returns the pointer for a global object.
Definition: GlobalObj.cpp:31
A class to be inherited from so that all child classes will have a tracked unique ID...
Definition: GlobalObj.h:43
GlobalObject(const T *ptr)
Constructs a global object given a pointer to the object you want to make a global object...
Definition: GlobalObj.h:73
GlobalObject(const GlobalObject &)=delete