Geant4-11
Public Types | Public Member Functions | Protected Attributes
PTL::VTask Class Referenceabstract

VTask is the abstract class stored in thread_pool. More...

#include <VTask.hh>

Inheritance diagram for PTL::VTask:
PTL::TaskFuture< void > PTL::TaskFuture< RetT > PTL::Task< void, void > PTL::PackagedTask< RetT, Args > PTL::Task< RetT, Args > PTL::Task< RetT, void >

Public Types

typedef size_t size_type
 
typedef std::thread::id tid_type
 
typedef std::function< void()> void_func_t
 

Public Member Functions

intmax_t depth () const
 
bool is_native_task () const
 
virtual void operator() ()=0
 
VTaskoperator= (const VTask &)=delete
 
VTaskoperator= (VTask &&)=default
 
 VTask ()=default
 
 VTask (bool _is_native, intmax_t _depth)
 
 VTask (const VTask &)=delete
 
 VTask (VTask &&)=default
 
virtual ~VTask ()=default
 

Protected Attributes

intmax_t m_depth = 0
 
void_func_t m_func = []() {}
 
bool m_is_native = false
 

Detailed Description

VTask is the abstract class stored in thread_pool.

Definition at line 53 of file VTask.hh.

Member Typedef Documentation

◆ size_type

typedef size_t PTL::VTask::size_type

Definition at line 57 of file VTask.hh.

◆ tid_type

typedef std::thread::id PTL::VTask::tid_type

Definition at line 56 of file VTask.hh.

◆ void_func_t

Definition at line 58 of file VTask.hh.

Constructor & Destructor Documentation

◆ VTask() [1/4]

VTask::VTask ( bool  _is_native,
intmax_t  _depth 
)

Definition at line 41 of file VTask.cc.

42: m_is_native{ _is_native }
43, m_depth{ _depth }
44{}
bool m_is_native
Definition: VTask.hh:81
intmax_t m_depth
Definition: VTask.hh:82

◆ VTask() [2/4]

PTL::VTask::VTask ( )
default

◆ ~VTask()

virtual PTL::VTask::~VTask ( )
virtualdefault

◆ VTask() [3/4]

PTL::VTask::VTask ( const VTask )
delete

◆ VTask() [4/4]

PTL::VTask::VTask ( VTask &&  )
default

Member Function Documentation

◆ depth()

intmax_t PTL::VTask::depth ( ) const
inline

Definition at line 78 of file VTask.hh.

78{ return m_depth; }

References m_depth.

◆ is_native_task()

bool PTL::VTask::is_native_task ( ) const
inline

Definition at line 77 of file VTask.hh.

77{ return m_is_native; }

References m_is_native.

◆ operator()()

virtual void PTL::VTask::operator() ( )
pure virtual

◆ operator=() [1/2]

VTask & PTL::VTask::operator= ( const VTask )
delete

◆ operator=() [2/2]

VTask & PTL::VTask::operator= ( VTask &&  )
default

Field Documentation

◆ m_depth

intmax_t PTL::VTask::m_depth = 0
protected

Definition at line 82 of file VTask.hh.

Referenced by depth().

◆ m_func

void_func_t PTL::VTask::m_func = []() {}
protected

Definition at line 83 of file VTask.hh.

◆ m_is_native

bool PTL::VTask::m_is_native = false
protected

Definition at line 81 of file VTask.hh.

Referenced by is_native_task().


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