TODO: None of this is thread-safe yet.
void add_tasks_from(AsyncTaskCollection const &other)
Adds all the
AsyncTasksindicated in the other collection to this task. The other tasks are simply appended to the end of the tasks in this list; duplicates are not automatically removed.
AsyncTask *find_task(std::string const &name) const
Returns the task in the collection with the indicated name, if any, or NULL if no task has that name.
bool has_task(AsyncTask *task) const
Returns true if the indicated
AsyncTaskappears in this collection, false otherwise.
void output(std::ostream &out) const
Writes a brief one-line description of the
AsyncTaskCollectionto the indicated output stream.
void remove_task(std::size_t index)
Removes the indicated
AsyncTaskfrom the collection. Returns true if the task was removed, false if it was not a member of the collection.
Removes the nth
AsyncTaskfrom the collection.
void remove_tasks_from(AsyncTaskCollection const &other)
Removes from this collection all of the
AsyncTaskslisted in the other collection.
std::size_t size(void) const
Returns the number of tasks in the collection. This is the same thing as