multimodemodel.StateDeque

multimodemodel.StateDeque#

class multimodemodel.StateDeque[source]#

Deque of State objects.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

append

Add an element to the right side of the deque.

appendleft

Add an element to the left side of the deque.

clear

Remove all elements from the deque.

copy

Return a shallow copy of a deque.

count

D.count(value) -- return number of occurrences of value

extend

Extend the right side of the deque with elements from the iterable

extendleft

Extend the left side of the deque with elements from the iterable

index

D.index(value, [start, [stop]]) -- return first index of value.

insert

D.insert(index, object) -- insert object before index

merge(others, merger)

Merge StateDeques.

pop

Remove and return the rightmost element.

popleft

Remove and return the leftmost element.

remove

D.remove(value) -- remove first occurrence of value.

reverse

D.reverse() -- reverse IN PLACE

rotate

Rotate the deque n steps to the right (default n=1).

split(splitter)

Split StateDeque.

Attributes

maxlen

maximum size of a deque or None if unbounded