Schroedinger Reference Manual | ||||
---|---|---|---|---|
Top | Description |
struct SchroQueue; struct SchroQueueElement; void (*SchroQueueFreeFunc) (void *data
,SchroPictureNumber number
); void schro_queue_add (SchroQueue *queue
,void *element
,SchroPictureNumber picture_number
); void schro_queue_clear (SchroQueue *queue
); void schro_queue_delete (SchroQueue *queue
,SchroPictureNumber picture_number
); void * schro_queue_find (SchroQueue *queue
,SchroPictureNumber picture_number
); void schro_queue_free (SchroQueue *queue
); int schro_queue_is_empty (SchroQueue *queue
); int schro_queue_is_full (SchroQueue *queue
); SchroQueue * schro_queue_new (int size
,SchroQueueFreeFunc func
); void schro_queue_pop (SchroQueue *queue
); void * schro_queue_pull (SchroQueue *queue
); void * schro_queue_remove (SchroQueue *queue
,SchroPictureNumber picture_number
);
struct SchroQueue { int size; int n; SchroQueueElement *elements; SchroQueueFreeFunc free; };
struct SchroQueueElement { void *data; SchroPictureNumber picture_number; };
void schro_queue_add (SchroQueue *queue
,void *element
,SchroPictureNumber picture_number
);
void schro_queue_delete (SchroQueue *queue
,SchroPictureNumber picture_number
);
void * schro_queue_remove (SchroQueue *queue
,SchroPictureNumber picture_number
);