ezEngine  Milestone 7
ezDelegateTask< T > Class Template Reference

A simple task implementation that calls a delegate function. More...

#include <DelegateTask.h>

Inheritance diagram for ezDelegateTask< T >:

Public Types

typedef ezDelegate< void(const
T &)> 

Public Member Functions

 ezDelegateTask (const char *szName, FunctionType func, const T &param)
- Public Member Functions inherited from ezTask
void SetTaskName (const char *szName)
 Changes the name of the task, which it will be displayed in profiling tools. More...
void SetOnTaskFinished (OnTaskFinished Callback)
 Sets an additional callback function to execute when the task is finished (or canceled). The most common use case for this is to deallocate the task at this time.
bool IsTaskFinished () const
 Returns whether the task has been finished. This includes being canceled. More...
bool HasBeenCanceled () const
 Can be used inside an overridden 'Execute' function to terminate execution prematurely.

Private Member Functions

virtual void Execute () override
 Override this to implement the task's supposed functionality.

Private Attributes

FunctionType m_func

Detailed Description

template<typename T>
class ezDelegateTask< T >

A simple task implementation that calls a delegate function.

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