Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
queue_t Struct Reference

#include <queue.h>

Data Fields

void ** base
 start of the backing memory
 
size_t head
 index of the first element
 
size_t size
 number of elements currently stored
 
size_t capacity
 number of allocated slots in the backing memory
 

Detailed Description

queue object

A valid queue can be constructed with either C99 zero initialization, queue_t q = {0}, or by calling queue_new.

Definition at line 22 of file queue.h.

Field Documentation

◆ base

void** queue_t::base

Definition at line 23 of file queue.h.

Referenced by queue_free(), queue_new(), queue_pop(), and queue_push().

◆ capacity

size_t queue_t::capacity

Definition at line 26 of file queue.h.

Referenced by queue_pop(), and queue_push().

◆ head

size_t queue_t::head

Definition at line 24 of file queue.h.

Referenced by queue_pop(), and queue_push().

◆ size

size_t queue_t::size

Definition at line 25 of file queue.h.

Referenced by queue_pop(), and queue_push().


The documentation for this struct was generated from the following file: