ecflow.TaskVec
- class ecflow.TaskVec
Bases:
pybind11_object
Hold a list of task nodes
- TaskVec.append(self: ecflow.TaskVec, x: Task) None
Add an item to the end of the list
- TaskVec.clear(self: ecflow.TaskVec) None
Clear the contents
- TaskVec.count(self: ecflow.TaskVec, x: Task) int
Return the number of times x appears in the list
- TaskVec.extend(*args, **kwargs)
Overloaded function.
extend(self: ecflow.TaskVec, L: ecflow.TaskVec) -> None
Extend the list by appending all the items in the given list
extend(self: ecflow.TaskVec, L: collections.abc.Iterable) -> None
Extend the list by appending all the items in the given list
- TaskVec.insert(self: ecflow.TaskVec, i: SupportsInt | SupportsIndex, x: Task) None
Insert an item at a given position.
- TaskVec.pop(*args, **kwargs)
Overloaded function.
pop(self: ecflow.TaskVec) -> Task
Remove and return the last item
pop(self: ecflow.TaskVec, i: typing.SupportsInt | typing.SupportsIndex) -> Task
Remove and return the item at index i
- TaskVec.remove(self: ecflow.TaskVec, x: Task) None
Remove the first item from the list whose value is x. It is an error if there is no such item.