Function group_ctx

Synopsis

#include <include/flecs/addons/cpp/mixins/query/impl.hpp>

void * group_ctx(uint64_t group_id)

Description

Get context for group.

Parameters

group_id - The group id for which to retrieve the context.

Returns
The group context.

Source

Lines 76-83 in include/flecs/addons/cpp/mixins/query/impl.hpp.

void* group_ctx(uint64_t group_id) {
    const flecs::query_group_info_t *gi = group_info(group_id);
    if (gi) {
        return gi->ctx;
    } else {
        return NULL;
    }
}