Sofa.Helper.Vectorlong

class Sofa.Helper.Vectorlong

Bases: StdVectorlong

Vector of long

append(self: Sofa.Helper.StdVectorlong, x: int) None

Add an item to the end of the list

clear(self: Sofa.Helper.StdVectorlong) None

Clear the contents

count(self: Sofa.Helper.StdVectorlong, x: int) int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: Sofa.Helper.StdVectorlong, L: Sofa.Helper.StdVectorlong) -> None

Extend the list by appending all the items in the given list

  1. extend(self: Sofa.Helper.StdVectorlong, L: Iterable) -> None

Extend the list by appending all the items in the given list

insert(self: Sofa.Helper.StdVectorlong, i: int, x: int) None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: Sofa.Helper.StdVectorlong) -> int

Remove and return the last item

  1. pop(self: Sofa.Helper.StdVectorlong, i: int) -> int

Remove and return the item at index i

remove(self: Sofa.Helper.StdVectorlong, x: int) None

Remove the first item from the list whose value is x. It is an error if there is no such item.