Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
constructor · 2 overloads
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Constructs `epok::ObjectRegistry` for the object model module.
ObjectRegistry(const ObjectRegistry&) = deleteConstructs `epok::ObjectRegistry` for the object model module.
| Parameter | Type | Meaning |
|---|---|---|
arg1 | const ObjectRegistry & | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// const ObjectRegistry & arg1
epok::ObjectRegistry value(arg1);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:360
constexpr ObjectRegistry(ObjectSlot* table, uint16_t count) : slots(table), capacity(count)Constructs `epok::ObjectRegistry` for the object model module.
| Parameter | Type | Meaning |
|---|---|---|
table | ObjectSlot * | Not documented; consult the linked header. |
count | uint16_t | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// ObjectSlot * table
// uint16_t count
epok::ObjectRegistry value(table, count);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:359
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.Methodnext_generationPerforms `next generation` as part of the object model module.Methodoperator=Performs `operator =` 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