60 const std::vector<std::unique_ptr<Task>> &
GetTasks()
const {
65 std::vector<std::unique_ptr<Task>> mTasks;
66 std::vector<std::unique_ptr<Task>>::iterator mCurrent;
Task that runs a list of tasks one after another.
Definition serialtasks.h:14
void Add(Task *pTask)
Append a task, which the list then manages.
~SerialTasks() override
Release the list and every task in it.
void OnStop() override
Stop the task that runs now.
void OnPoll() override
Poll the task that runs now, start the next one after it is done, and finish after the last one or af...
void OnStart() override
Start the first task, or finish with success when the list is empty.
const std::vector< std::unique_ptr< Task > > & GetTasks() const
Definition serialtasks.h:60
Task()
Construct an idle task.
Definition task.h:24