libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
cqueue Struct Reference

Circular queue of integers. More...

#include <queue.h>

Data Fields

unsigned int length
 The current number of items on the queue.
 
unsigned int _max_length
 The maximum number of items that fits on the queue.
 
int _current
 The index for the current item.
 
int _last
 The index of the last item.
 
int * data
 Pointer to queue data with allocated space to fit max_size items.
 

Detailed Description

Circular queue of integers.

Definition at line 6 of file queue.h.

Field Documentation

◆ _current

int cqueue::_current

The index for the current item.

Definition at line 10 of file queue.h.

◆ _last

int cqueue::_last

The index of the last item.

Definition at line 11 of file queue.h.

◆ _max_length

unsigned int cqueue::_max_length

The maximum number of items that fits on the queue.

Definition at line 9 of file queue.h.

◆ data

int* cqueue::data

Pointer to queue data with allocated space to fit max_size items.

Definition at line 12 of file queue.h.

◆ length

unsigned int cqueue::length

The current number of items on the queue.

Definition at line 8 of file queue.h.


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