Beatmup
Beatmup::CustomPipeline::TaskHolder Class Reference

A task within a pipeline. More...

#include <custom_pipeline.h>

Inheritance diagram for Beatmup::CustomPipeline::TaskHolder:
Beatmup::Object Internal::MultitaskTaskHolder

Public Member Functions

 TaskHolder (TaskHolder &&)
 
 ~TaskHolder ()
 
AbstractTaskgetTask () const
 
float getRunTime () const
 
- Public Member Functions inherited from Beatmup::Object
virtual ~Object ()
 

Protected Member Functions

 TaskHolder (AbstractTask &task)
 

Protected Attributes

AbstractTasktask
 
AbstractTask::TaskDeviceRequirement executionMode
 
ThreadIndex threadCount
 
float time
 

Private Member Functions

void operator= (const TaskHolder &)=delete
 

Friends

class CustomPipeline
 
class CustomPipeline::Impl
 

Detailed Description

A task within a pipeline.

Definition at line 98 of file custom_pipeline.h.

Constructor & Destructor Documentation

◆ TaskHolder() [1/2]

Beatmup::CustomPipeline::TaskHolder::TaskHolder ( AbstractTask task)
inlineprotected

Definition at line 108 of file custom_pipeline.h.

◆ TaskHolder() [2/2]

CustomPipeline::TaskHolder::TaskHolder ( CustomPipeline::TaskHolder &&  holder)

Definition at line 283 of file custom_pipeline.cpp.

283  :
284  task(holder.task),
286  threadCount(holder.threadCount),
287  time(0)
288 {}
AbstractTask::TaskDeviceRequirement executionMode

◆ ~TaskHolder()

Beatmup::CustomPipeline::TaskHolder::~TaskHolder ( )
inline

Definition at line 111 of file custom_pipeline.h.

111 {}

Member Function Documentation

◆ operator=()

void Beatmup::CustomPipeline::TaskHolder::operator= ( const TaskHolder )
privatedelete

◆ getTask()

AbstractTask& Beatmup::CustomPipeline::TaskHolder::getTask ( ) const
inline
Returns
the task in the current holder.

Definition at line 116 of file custom_pipeline.h.

116 { return task; }

◆ getRunTime()

float Beatmup::CustomPipeline::TaskHolder::getRunTime ( ) const
inline
Returns
last execution time in milliseconds.

Definition at line 121 of file custom_pipeline.h.

121 { return time; }

Friends And Related Function Documentation

◆ CustomPipeline

friend class CustomPipeline
friend

Definition at line 99 of file custom_pipeline.h.

◆ CustomPipeline::Impl

friend class CustomPipeline::Impl
friend

Definition at line 100 of file custom_pipeline.h.

Member Data Documentation

◆ task

AbstractTask& Beatmup::CustomPipeline::TaskHolder::task
protected

Definition at line 104 of file custom_pipeline.h.

◆ executionMode

AbstractTask::TaskDeviceRequirement Beatmup::CustomPipeline::TaskHolder::executionMode
protected

Definition at line 105 of file custom_pipeline.h.

◆ threadCount

ThreadIndex Beatmup::CustomPipeline::TaskHolder::threadCount
protected

Definition at line 106 of file custom_pipeline.h.

◆ time

float Beatmup::CustomPipeline::TaskHolder::time
protected

Definition at line 107 of file custom_pipeline.h.


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