Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
Stack Struct Reference

Stack implementation. More...

#include <utils/stack.h>

Data Fields

void ** elements
 
int max_length
 Max stack size, or -1 for unlimited.
 
volatile gint top
 Index of the top of the stack.
 

Detailed Description

Stack implementation.

Definition at line 31 of file stack.h.

Field Documentation

◆ elements

void** Stack::elements

Definition at line 33 of file stack.h.

◆ max_length

int Stack::max_length

Max stack size, or -1 for unlimited.

If the stack has a fixed length, it will be real-time safe. If it has unlimited length, it will not be real-time safe.

Definition at line 42 of file stack.h.

◆ top

volatile gint Stack::top

Index of the top of the stack.

This is an index and not a count. Eg., if there is 1 element, this will be 0.

Definition at line 50 of file stack.h.


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