Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
|
VTask is the abstract class stored in thread_pool. More...
#include <VTask.hh>
Public Types | |
using | tid_type = std::thread::id |
using | size_type = size_t |
using | void_func_t = std::function<void()> |
Public Member Functions | |
VTask (bool _is_native, intmax_t _depth) | |
VTask ()=default | |
virtual | ~VTask ()=default |
VTask (const VTask &)=delete | |
VTask & | operator= (const VTask &)=delete |
VTask (VTask &&)=default | |
VTask & | operator= (VTask &&)=default |
virtual void | operator() ()=0 |
bool | is_native_task () const |
intmax_t | depth () const |
Protected Attributes | |
bool | m_is_native = false |
intmax_t | m_depth = 0 |
void_func_t | m_func = []() {} |
VTask is the abstract class stored in thread_pool.
using PTL::VTask::size_type = size_t |
using PTL::VTask::tid_type = std::thread::id |
using PTL::VTask::void_func_t = std::function<void()> |
|
inline |
Definition at line 50 of file VTask.hh.
Referenced by operator=(), operator=(), PTL::TaskFuture< RetT >::TaskFuture(), VTask(), and VTask().
|
default |
|
virtualdefault |
|
delete |
|
default |
|
inline |
|
pure virtual |
Implemented in PTL::PackagedTask< RetT, Args >, PTL::PackagedTask< RetT, Args... >, PTL::PackagedTask< RetT, Args... >, PTL::Task< RetT, Args >, PTL::Task< _Ret, _Arg, _Args... >, PTL::Task< _Ret, _Arg, _Args... >, PTL::Task< ArgTp, decay_t< Args >... >, PTL::Task< ArgTp, decay_t< Args >... >, PTL::Task< RetT >, PTL::Task< RetT >, PTL::Task< RetT, Args... >, PTL::Task< RetT, Args... >, PTL::Task< RetT, void >, and PTL::Task< RetT, void >.
|
protected |
|
protected |
|
protected |
Definition at line 73 of file VTask.hh.
Referenced by is_native_task(), and VTask().