Function param

Summary

#include <include/flecs/addons/cpp/iter.hpp>

(1) void * param()

(2) template <typename T>
    T * param()

Function overload

Synopsis

#include <include/flecs/addons/cpp/iter.hpp>

void * param()

Description

Access param. param contains the pointer passed to the param argument of system::run

Source

Lines 215-217 in include/flecs/addons/cpp/iter.hpp.

void* param() {
    return m_iter->param;
}

Synopsis

#include <include/flecs/addons/cpp/iter.hpp>

template <typename T>
T * param()

Description

Access param. param contains the pointer passed to the param argument of system::run

Source

Lines 222-226 in include/flecs/addons/cpp/iter.hpp.

template <typename T>
T* param() {
    /* TODO: type check */
    return static_cast<T*>(m_iter->param);
}