queue package:gi-glib

Contains the public fields of a [Queue][glib-Double-ended-Queues].
Memory-managed wrapper type.
Removes all the elements in queue. If queue elements contain dynamically-allocated memory, they should be freed first. Since: 2.14
Convenience method, which frees all the memory used by a Queue, and calls the provided freeFunc on each item in the Queue. Since: 2.60
Calls func for each element in the queue passing userData to the function. It is safe for func to remove the element from queue, but it must not modify any part of the queue after that element. Since: 2.4
Frees the memory allocated for the Queue. Only call this function if queue was created with g_queue_new(). If queue elements contain dynamically-allocated memory, they should be freed first. If queue elements contain dynamically-allocated memory, you should either use queueFreeFull or free them manually first.
Convenience method, which frees all the memory used by a Queue, and calls the specified destroy function on every element's data. freeFunc should not modify the queue (eg, by removing the freed element from it). Since: 2.32
Returns the number of items in queue. Since: 2.4
Returns the position of the first element in queue which contains data. Since: 2.4
A statically-allocated Queue must be initialized with this function before it can be used. Alternatively you can initialize it with G_QUEUE_INIT. It is not necessary to initialize queues created with g_queue_new(). Since: 2.14
Inserts data into queue using func to determine the new position. Since: 2.4
Returns True if the queue is empty.
Returns the first element of the queue.
Returns the n'th element of queue. Since: 2.4
Returns the last element of the queue.
Removes the first element of the queue and returns its data.
Removes the n'th element of queue and returns its data. Since: 2.4
Removes the last element of the queue and returns its data.
Adds a new element at the head of the queue.
Inserts a new element into queue at the given position. Since: 2.4
Adds a new element at the tail of the queue.
Removes the first element in queue that contains data. Since: 2.4
Remove all elements whose data equals data from queue. Since: 2.4
Reverses the order of the items in queue. Since: 2.4