Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::mt::JobArgsFunc Class Reference

Move-only callback wrapper specialized for parallel job ranges. More...

#include <jobcommon.h>

Public Member Functions

 JobArgsFunc (const JobArgsFunc &)=delete
 
JobArgsFuncoperator= (const JobArgsFunc &)=delete
 
 JobArgsFunc (JobArgsFunc &&other) noexcept
 
JobArgsFuncoperator= (JobArgsFunc &&other) noexcept
 
template<typename F , typename = std::enable_if_t<!std::is_same_v<std::decay_t<F>, JobArgsFunc>>>
 JobArgsFunc (F &&f)
 
template<typename F , typename = std::enable_if_t<!std::is_same_v<std::decay_t<F>, JobArgsFunc>>>
JobArgsFuncoperator= (F &&f)
 
void exec (const JobArgs &args) const
 
void operator() (const JobArgs &args) const
 
void reset ()
 
 operator bool () const
 

Static Public Member Functions

template<typename F >
static JobArgsFunc create (F &&f)
 

Detailed Description

Move-only callback wrapper specialized for parallel job ranges.


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