neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::task< Base > Class Template Reference

#include <task.hpp>

Inheritance diagram for neolib::task< Base >:
neolib::i_task neolib::function_task< T >

Public Member Functions

 task (const std::string &aName=std::string{})
 
const std::string & name () const override
 
bool do_work (yield_type aYieldType=yield_type::NoYield) override
 
void cancel () noexcept override
 
bool cancelled () const override
 
- Public Member Functions inherited from neolib::i_task
virtual ~i_task ()=default
 
virtual void run (yield_type aYieldType=yield_type::NoYield)=0
 

Detailed Description

template<typename Base = i_task>
class neolib::task< Base >

Definition at line 47 of file task.hpp.

Constructor & Destructor Documentation

◆ task()

template<typename Base = i_task>
neolib::task< Base >::task ( const std::string &  aName = std::string{})
inline

Definition at line 51 of file task.hpp.

Member Function Documentation

◆ cancel()

template<typename Base = i_task>
void neolib::task< Base >::cancel ( )
inlineoverridevirtualnoexcept

Implements neolib::i_task.

Definition at line 66 of file task.hpp.

◆ cancelled()

template<typename Base = i_task>
bool neolib::task< Base >::cancelled ( ) const
inlineoverridevirtual

Implements neolib::i_task.

Definition at line 70 of file task.hpp.

◆ do_work()

template<typename Base = i_task>
bool neolib::task< Base >::do_work ( yield_type  aYieldType = yield_type::NoYield)
inlineoverridevirtual

Implements neolib::i_task.

Definition at line 62 of file task.hpp.

◆ name()

template<typename Base = i_task>
const std::string & neolib::task< Base >::name ( ) const
inlineoverridevirtual

Implements neolib::i_task.

Definition at line 56 of file task.hpp.


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