Sofa.Helper.Vectorint
- class Sofa.Helper.Vectorint
Bases:
StdVectorint
Vector of int
- append(self: Sofa.Helper.StdVectorint, x: int) None
Add an item to the end of the list
- clear(self: Sofa.Helper.StdVectorint) None
Clear the contents
- count(self: Sofa.Helper.StdVectorint, x: int) int
Return the number of times
x
appears in the list
- extend(*args, **kwargs)
Overloaded function.
extend(self: Sofa.Helper.StdVectorint, L: Sofa.Helper.StdVectorint) -> None
Extend the list by appending all the items in the given list
extend(self: Sofa.Helper.StdVectorint, L: Iterable) -> None
Extend the list by appending all the items in the given list
- insert(self: Sofa.Helper.StdVectorint, i: int, x: int) None
Insert an item at a given position.
- pop(*args, **kwargs)
Overloaded function.
pop(self: Sofa.Helper.StdVectorint) -> int
Remove and return the last item
pop(self: Sofa.Helper.StdVectorint, i: int) -> int
Remove and return the item at index
i
- remove(self: Sofa.Helper.StdVectorint, x: int) None
Remove the first item from the list whose value is x. It is an error if there is no such item.