23 struct RegisteredObject;
25 struct ObjectRegistry;
33 inline size_t size()
const {
return objects.size(); }
34 inline bool empty()
const {
return objects.empty(); }
46 std::vector<RegisteredObject *> objects;
51 int numIDsAllocedInContext = 0;
55 std::stack<int> previouslyReleasedIDs;
71 inline T* getPtr(
size_t ID)
73 return (T*)ObjectRegistry::getPtr(ID);
76 inline typename T::SP getSP(
size_t ID)
80 Object::SP
object = ptr->shared_from_this();
82 return object->as<T>();
Definition: ObjectRegistry.h:64
Definition: ObjectRegistry.h:30
Definition: RegisteredObject.h:30