EPOK RUNTIME
epok::ObjectRegistry
Struct
Struct
Slot table over a fixed capacity.
Basic usage
This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.
C++ example
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// const ObjectRegistry & arg1
epok::ObjectRegistry value(arg1);Fields and constants
capacityExposes `capacity` on `epok::ObjectRegistry` for the object model module.FielddispatchExposes `dispatch` on `epok::ObjectRegistry` for the object model module.FieldslotsExposes `slots` on `epok::ObjectRegistry` for the object model module.FieldstatsExposes `stats` on `epok::ObjectRegistry` for the object model module.FieldConstructors
Public methods
acquirePool-backed construction of a concrete class.MethodadoptAdopt storage owned by somebody else (an actor's embedded default component, the Level itself).Methodclass_ofPerforms `class of` as part of the object model module.Methodcollect_quarantinedRetry the quarantined slots.Methodfinish_releaseCalled when the last dispatch scope unwinds: no callback can still be on the stack of a destroyed object, so its typed storage returns to the pool.MethodgetReturns get as part of the object model module.MethodlivePerforms `live` as part of the object model module.MethodreleaseInvalidates the handle immediately; storage is quarantined while callbacks run.MethodresolveGeneration and class checked; the runtime class must derive from T's static class.Function templateslotPerforms `slot` as part of the object model module.Method