Epok Engine

EPOK RUNTIME

epok::find_object_class

Function · 1 overload

Function

Finds object class as part of the object model module.

Belongs to
epok
Header
object_model.hpp
Overloads
1

Declaration

Declaration
inline const ClassDescriptor* find_object_class(uint64_t id)

Finds object class as part of the object model module.

ParameterTypeMeaning
iduint64_tValue supplied for id. Keep referenced or pointed-to data valid for the complete call.

Returns: const ClassDescriptor *. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "object_model.hpp"

// Assume these named values have been initialized with valid data:
// uint64_t id

auto result = epok::find_object_class(id);

Why use it

It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/object_model.hpp:153

Related members