Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::detail::QueryImpl::IterJobCallback< Func > Struct Template Reference

Callback adapter that sets iterator context before invoking an Iter& user callback. More...

#include <query.h>

Public Member Functions

void operator() (Iter &it)
 Invokes the stored callback for it.
 

Public Attributes

QueryImplpSelf = nullptr
 Query owning the runtime context pointer.
 
Func func
 User callback copied into the deferred job context.
 

Detailed Description

template<typename Func>
struct gaia::ecs::detail::QueryImpl::IterJobCallback< Func >

Callback adapter that sets iterator context before invoking an Iter& user callback.

Template Parameters
FuncUser callback type invocable with Iter&.

Member Function Documentation

◆ operator()()

template<typename Func >
void gaia::ecs::detail::QueryImpl::IterJobCallback< Func >::operator() ( Iter it)
inline

Invokes the stored callback for it.

Parameters
itIterator prepared for the current query batch.

The documentation for this struct was generated from the following file: