VOX
A little voxel engine
Loading...
Searching...
No Matches
task::Task Class Reference

#include <Task.hpp>

Collaboration diagram for task::Task:
Collaboration graph

Public Member Functions

 Task (TaskNode *node)
 
 ~Task ()
 
 Task (const Task &)=default
 
Taskoperator= (const Task &)=default
 
 Task (Task &&)=default
 
Taskoperator= (Task &&)=default
 
Taskprecede (Task &t)
 add a precedence link from this task to More...
 
Tasksuccceed (Task &t)
 add a successor link from this task to t More...
 
template<typename F >
void set_task (F &&f)
 Set the underlying task. More...
 
TaskName (const std::string &name)
 
std::string getName () const
 
void * getData () const
 
void setData (void *data)
 
void reset ()
 
void resetTask ()
 
bool isEmpty () const
 
bool hasTask () const
 

Constructor & Destructor Documentation

◆ Task() [1/3]

task::Task::Task ( TaskNode node)
inline

◆ ~Task()

task::Task::~Task ( )
inline

◆ Task() [2/3]

task::Task::Task ( const Task )
default

◆ Task() [3/3]

task::Task::Task ( Task &&  )
default

Member Function Documentation

◆ getData()

void * task::Task::getData ( ) const

◆ getName()

std::string task::Task::getName ( ) const
inline

◆ hasTask()

bool task::Task::hasTask ( ) const

◆ isEmpty()

bool task::Task::isEmpty ( ) const

◆ Name()

Task & task::Task::Name ( const std::string &  name)
inline

◆ operator=() [1/2]

Task & task::Task::operator= ( const Task )
default

◆ operator=() [2/2]

Task & task::Task::operator= ( Task &&  )
default

◆ precede()

Task & task::Task::precede ( Task t)
inline

add a precedence link from this task to

Parameters
t
Returns
*this

◆ reset()

void task::Task::reset ( )

◆ resetTask()

void task::Task::resetTask ( )

◆ set_task()

template<typename F >
void task::Task::set_task ( F &&  f)

Set the underlying task.

Template Parameters
F
Parameters
f

◆ setData()

void task::Task::setData ( void *  data)

◆ succceed()

Task & task::Task::succceed ( Task t)
inline

add a successor link from this task to t

Parameters
t
Returns
*this

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