Epok Engine

EPOK RUNTIME

epok::bp::root_component

Function template · 1 overload

Function template

Performs `root component` as part of compiled Blueprint execution and object interaction.

Belongs to
epok::bp
Header
actor_blueprint.hpp
Overloads
1

Declaration

template
Declaration
template<class Root> Root* root_component(ObjectId id)

Performs `root component` as part of compiled Blueprint execution and object interaction.

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

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

Example

C++ example
#include "actor_blueprint.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Root

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

epok::bp& object = /* obtain a valid instance */;

auto result = object.root_component<Root>(id);

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size.

Declared in runtime/actor_blueprint.hpp:25

Related members