Panda3D
|
A list of tasks, for instance as returned by some of the AsyncTaskManager query functions. This also serves to define an AsyncTaskSequence. More...
Public Member Functions | |
__init__ () | |
__init__ (const AsyncTaskCollection copy) | |
addTask (AsyncTask task) | |
Adds a new AsyncTask to the collection. More... | |
addTasksFrom (const AsyncTaskCollection other) | |
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. More... | |
clear () | |
Removes all AsyncTasks from the collection. More... | |
AsyncTask | findTask (str name) |
Returns the task in the collection with the indicated name, if any, or NULL if no task has that name. More... | |
int | getNumTasks () |
Returns the number of AsyncTasks in the collection. More... | |
AsyncTask | getTask (int index) |
Returns the nth AsyncTask in the collection. More... | |
list | getTasks () |
bool | hasTask (AsyncTask task) |
Returns true if the indicated AsyncTask appears in this collection, false otherwise. More... | |
AsyncTaskCollection | operator+ (const AsyncTaskCollection other) |
AsyncTaskCollection | operator+= (const AsyncTaskCollection other) |
AsyncTaskCollection | operator= (const AsyncTaskCollection copy) |
AsyncTask | operator[] (int index) |
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. More... | |
output (Ostream out) | |
Writes a brief one-line description of the AsyncTaskCollection to the indicated output stream. More... | |
removeDuplicateTasks () | |
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. More... | |
bool | removeTask (AsyncTask task) |
Removes the indicated AsyncTask from the collection. Returns true if the task was removed, false if it was not a member of the collection. More... | |
removeTask (int index) | |
Removes the nth AsyncTask from the collection. More... | |
removeTasksFrom (const AsyncTaskCollection other) | |
Removes from this collection all of the AsyncTasks listed in the other collection. More... | |
int | size () |
Returns the number of tasks in the collection. This is the same thing as get_num_tasks(). More... | |
write (Ostream out, int indent_level) | |
Writes a complete multi-line description of the AsyncTaskCollection to the indicated output stream. More... | |
A list of tasks, for instance as returned by some of the AsyncTaskManager query functions. This also serves to define an AsyncTaskSequence.
TODO: None of this is thread-safe yet.
__init__ | ( | ) |
__init__ | ( | const AsyncTaskCollection | copy | ) |
addTasksFrom | ( | const AsyncTaskCollection | other | ) |
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 | ( | ) |
Removes all AsyncTasks from the collection.
AsyncTask findTask | ( | str | name | ) |
Returns the task in the collection with the indicated name, if any, or NULL if no task has that name.
int getNumTasks | ( | ) |
Returns the number of AsyncTasks in the collection.
list getTasks | ( | ) |
bool hasTask | ( | AsyncTask | task | ) |
Returns true if the indicated AsyncTask appears in this collection, false otherwise.
AsyncTaskCollection operator+ | ( | const AsyncTaskCollection | other | ) |
AsyncTaskCollection operator+= | ( | const AsyncTaskCollection | other | ) |
AsyncTaskCollection operator= | ( | const AsyncTaskCollection | copy | ) |
AsyncTask operator[] | ( | int | index | ) |
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 | ( | Ostream | out | ) |
Writes a brief one-line description of the AsyncTaskCollection to the indicated output stream.
removeDuplicateTasks | ( | ) |
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.
bool removeTask | ( | AsyncTask | task | ) |
Removes the indicated AsyncTask from the collection. Returns true if the task was removed, false if it was not a member of the collection.
removeTask | ( | int | index | ) |
Removes the nth AsyncTask from the collection.
removeTasksFrom | ( | const AsyncTaskCollection | other | ) |
Removes from this collection all of the AsyncTasks listed in the other collection.
int size | ( | ) |
Returns the number of tasks in the collection. This is the same thing as get_num_tasks().
write | ( | Ostream | out, |
int | indent_level | ||
) |
Writes a complete multi-line description of the AsyncTaskCollection to the indicated output stream.