AsyncTaskCollection¶
-
class AsyncTaskCollection¶
A list of tasks, for instance as returned by some of the
AsyncTaskManagerquery functions. This also serves to define anAsyncTaskSequence.TODO: None of this is thread-safe yet.
Inheritance diagram
digraph inheritanceac818ce9a9 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AsyncTaskCollection" [URL="acron.core.AsyncTaskCollection.html#acron.core.AsyncTaskCollection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "AsyncTaskCollection" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- AsyncTaskCollection.__add__()¶
- AsyncTaskCollection.__getitem__()¶
Returns the nth
AsyncTaskin the collection. This is the same asget_task(), but it may be a more convenient way to access it.
- AsyncTaskCollection.__iadd__()¶
- AsyncTaskCollection.__init__()¶
- AsyncTaskCollection.add_tasks_from()¶
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.
- AsyncTaskCollection.assign()¶
- AsyncTaskCollection.clear()¶
Removes all
AsyncTasksfrom the collection.
- AsyncTaskCollection.find_task()¶
Returns the task in the collection with the indicated name, if any, or NULL if no task has that name.
- AsyncTaskCollection.get_num_tasks()¶
Returns the number of
AsyncTasksin the collection.
- AsyncTaskCollection.has_task()¶
Returns true if the indicated
AsyncTaskappears in this collection, false otherwise.
- AsyncTaskCollection.output()¶
Writes a brief one-line description of the
AsyncTaskCollectionto the indicated output stream.
- AsyncTaskCollection.remove_duplicate_tasks()¶
Removes any duplicate entries of the same
AsyncTaskson this collection. If aAsyncTaskappears multiple times, the first appearance is retained; subsequent appearances are removed.
- AsyncTaskCollection.remove_task()¶
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.
- AsyncTaskCollection.remove_tasks_from()¶
Removes from this collection all of the
AsyncTaskslisted in the other collection.
- AsyncTaskCollection.size()¶
Returns the number of tasks in the collection. This is the same thing as
get_num_tasks().
- AsyncTaskCollection.write()¶
Writes a complete multi-line description of the
AsyncTaskCollectionto the indicated output stream.