Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Function template · 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.
Generation and class checked; the runtime class must derive from T's static class.
template<class T> T* resolve(ObjectId id)Generation and class checked; the runtime class must derive from T's static class.
| Parameter | Type | Meaning |
|---|---|---|
id | ObjectId | Not documented; consult the linked header. |
Returns: T *. Consult the linked header for its meaning.
#include "object_model.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// T
// Assume these named values have been initialized with valid data:
// ObjectId id
epok::ObjectRegistry& object = /* obtain a valid instance */;
auto result = object.resolve<T>(id);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:376
template<class T> const T* resolve(ObjectId id) constPerforms `resolve` as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
id | ObjectId | Not documented; consult the linked header. |
Returns: const T *. Consult the linked header for its meaning.
#include "object_model.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// T
// Assume these named values have been initialized with valid data:
// ObjectId id
epok::ObjectRegistry& object = /* obtain a valid instance */;
auto result = object.resolve<T>(id);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:393
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.MethodObjectRegistryConstructs `epok::ObjectRegistry` for the object model module.constructoroperator=Performs `operator =` as part of the object model module.MethodreleaseInvalidates the handle immediately; storage is quarantined while callbacks run.MethodslotPerforms `slot` as part of the object model module.Method