qml.queuing.AnnotatedQueue

class AnnotatedQueue[source]

Bases: collections.OrderedDict

Lightweight class that maintains a basic queue of operations, in addition to metadata annotations.

queue

Returns a list of objects in the annotated queue

queue

Returns a list of objects in the annotated queue

append(obj, **kwargs)

Append obj into the queue with kwargs metadata.

get_info(obj)

Retrieve the metadata for obj.

items()

remove(obj)

Remove obj from the queue.

update_info(obj, **kwargs)

Update obj’s metadata with kwargs if it exists in the queue.

append(obj, **kwargs)[source]

Append obj into the queue with kwargs metadata.

get_info(obj)[source]

Retrieve the metadata for obj. Raises a QueuingError if obj is not in the queue.

items()a set-like object providing a view on D’s items[source]
remove(obj)[source]

Remove obj from the queue. Passes silently if the object is not in the queue.

update_info(obj, **kwargs)[source]

Update obj’s metadata with kwargs if it exists in the queue.