Epok Engine

EPOK RUNTIME

epok::object_domain_bit

Function · 1 overload

Function

Owner domain masks for components.

Belongs to
epok
Header
object_model.hpp
Overloads
1

Declaration

Declaration
constexpr uint8_t object_domain_bit(ObjectDomain domain)

Owner domain masks for components.

ParameterTypeMeaning
domainObjectDomainValue supplied for domain. Keep referenced or pointed-to data valid for the complete call.

Returns: uint8_t. 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:
// ObjectDomain domain

auto result = epok::object_domain_bit(domain);

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:67

Related members