Epok Engine

EPOK RUNTIME

epok::object_class_is_a

Function · 1 overload

Function

Ancestry walk bounded by the table size; the cook rejects cycles before emitting.

Belongs to
epok
Header
object_model.hpp
Overloads
1

Declaration

Declaration
inline bool object_class_is_a(uint64_t child, uint64_t parent)

Ancestry walk bounded by the table size; the cook rejects cycles before emitting.

ParameterTypeMeaning
childuint64_tValue supplied for child. Keep referenced or pointed-to data valid for the complete call.
parentuint64_tValue supplied for parent. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. 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 child
// uint64_t parent

auto result = epok::object_class_is_a(child, parent);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations.

Declared in runtime/object_model.hpp:159

Related members