glib.queue
Module for [Queue] class
class Queue
Types 1
classQueue
Contains the public fields of a Queue.
Fields
GQueue _cInstanceMethods
void * _cPtr() nothrowvoid length(uint propval) @property nothrowSet `length` field. Params: propval = the number of elements in the queuevoid clear() nothrowRemoves all the elements in queue. If queue elements contain dynamically-allocated memory, they should be freed first.void clearFull(glib.types.DestroyNotify freeFunc = null) nothrowConvenience method, which frees all the memory used by a #GQueue, and calls the provided free_func on each item in the #GQueue.void foreach_(glib.types.Func func) nothrowCalls func for each element in the queue passing user_data to the function.void freeFull(glib.types.DestroyNotify freeFunc) nothrowConvenience method, which frees all the memory used by a #GQueue, and calls the specified destroy function on every element's data.int index(const(void) * data = null) nothrowReturns the position of the first element in queue which contains data.void init_() nothrowA statically-allocated #GQueue 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 create...void insertSorted(void * data, glib.types.CompareDataFunc func) nothrowInserts data into queue using func to determine the new position.void * peekHead() nothrowReturns the first element of the queue. Returns: the data of the first element in the queue, or null if the queue is emptyvoid * peekTail() nothrowReturns the last element of the queue. Returns: the data of the last element in the queue, or null if the queue is emptyvoid * popHead() nothrowRemoves the first element of the queue and returns its data. Returns: the data of the first element in the queue, or null if the queue is emptyvoid * popTail() nothrowRemoves the last element of the queue and returns its data. Returns: the data of the last element in the queue, or null if the queue is emptybool remove(const(void) * data = null) nothrowRemoves the first element in queue that contains data.uint removeAll(const(void) * data = null) nothrowRemove all elements whose data equals data from queue.Destructors