AsyncTaskCollection

Inheritance:

Methods of AsyncTaskCollection:

AsyncTaskCollection
AsyncTaskCollection::AsyncTaskCollection(void);

Description:

addTask
void AsyncTaskCollection::add_task(AsyncTask *task);

Description: Adds a new AsyncTask to the collection.

addTasksFrom
void AsyncTaskCollection::add_tasks_from(AsyncTaskCollection const &other);

Description: Adds all the AsyncTasks indicated 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.

clear
void AsyncTaskCollection::clear(void);

Description: Removes all AsyncTasks from the collection.

findTask
AsyncTask *AsyncTaskCollection::find_task(string const &name) const;

Description: Returns the task in the collection with the indicated name, if any, or NULL if no task has that name.

getNumTasks
int AsyncTaskCollection::get_num_tasks(void) const;

Description: Returns the number of AsyncTasks in the collection.

getTask
AsyncTask *AsyncTaskCollection::get_task(int index) const;

Description: Returns the nth AsyncTask in the collection.

hasTask
bool AsyncTaskCollection::has_task(AsyncTask *task) const;

Description: Returns true if the indicated AsyncTask appears in this collection, false otherwise.

operator +
AsyncTaskCollection AsyncTaskCollection::operator +(AsyncTaskCollection const &other) const;

Description: Returns a AsyncTaskCollection representing the concatenation of the two lists.

operator +=
void AsyncTaskCollection::operator +=(AsyncTaskCollection const &other);

Description: Appends the other list onto the end of this one.

operator =
void AsyncTaskCollection::operator =(AsyncTaskCollection const &copy);

Description:

operator []
AsyncTask *AsyncTaskCollection::operator [](int index) const;

Description: Returns the nth AsyncTask in the collection. This is the same as get_task(), but it may be a more convenient way to access it.

output
void AsyncTaskCollection::output(ostream &out) const;

Description: Writes a brief one-line description of the AsyncTaskCollection to the indicated output stream.

removeDuplicateTasks
void AsyncTaskCollection::remove_duplicate_tasks(void);

Description: Removes any duplicate entries of the same AsyncTasks on this collection. If a AsyncTask appears multiple times, the first appearance is retained; subsequent appearances are removed.

removeTask
bool AsyncTaskCollection::remove_task(AsyncTask *task);

Description: Removes the indicated AsyncTask from the collection. Returns true if the task was removed, false if it was not a member of the collection.
Description: Removes the nth AsyncTask from the collection.

removeTasksFrom
void AsyncTaskCollection::remove_tasks_from(AsyncTaskCollection const &other);

Description: Removes from this collection all of the AsyncTasks listed in the other collection.

size
int AsyncTaskCollection::size(void) const;

Description: Returns the number of tasks in the collection. This is the same thing as get_num_tasks().

write
void AsyncTaskCollection::write(ostream &out, int indent_level = (0)) const;

Description: Writes a complete multi-line description of the AsyncTaskCollection to the indicated output stream.