BitMagic-C++
Public Types | Public Member Functions
bm::task_batch_base Class Referenceabstract

Interface definition (base class) for a group of tasks (batch) More...

#include <bmtask.h>

Inheritance diagram for bm::task_batch_base:
Inheritance graph
[legend]

Public Types

typedef unsigned size_type
 

Public Member Functions

virtual ~task_batch_base ()
 
virtual size_type size () const =0
 Return size of batch. More...
 
virtual bm::task_descrget_task (size_type task_idx)=0
 Get task by index in the batch. More...
 

Detailed Description

Interface definition (base class) for a group of tasks (batch)

Definition at line 117 of file bmtask.h.

Member Function Documentation

◆ get_task()

virtual bm::task_descr* bm::task_batch_base::get_task ( size_type  task_idx)
pure virtual

Get task by index in the batch.

Parameters
task_idx- task index in the batch
Returns
task description

Implemented in bm::task_batch< BVAlloc >, and bm::task_batch< allocator_type >.

Referenced by bm::run_task_batch(), and bm::thread_pool_executor< TPool >::wait_for_batch_done().

◆ size()

virtual size_type bm::task_batch_base::size ( ) const
pure virtual

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