Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields | Related Functions
sld_stack Struct Reference

#include <stack.h>

Data Fields

sld_stack_type stack_type
 
SLD_UINT size
 
struct sld_listlist
 
struct sld_vectorvector
 

Related Functions

SLD_SSINT sld_stack_init (struct sld_stack *stack, sld_stack_type stack_type)
 Initializes a sld_stack. More...
 
SLD_UINT sld_stack_size (struct sld_stack *stack)
 Returns the size of a sld_stack. More...
 
SLD_SSINT sld_stack_push (struct sld_stack *stack, void *object)
 Adds an object to the top of a sld_stack. More...
 
void * sld_stack_pop (struct sld_stack *stack)
 Returns and removes the object at the top of a sld_stack. More...
 
void * sld_stack_peek (struct sld_stack *stack)
 Returns the object at the top of a sld_stack. More...
 
void sld_stack_free (struct sld_stack *stack)
 Frees any memory allocated for an initialized sld_stack. More...
 

Detailed Description

A sld_stack contains data in a LIFO (last in, first out) arrangement

Examples:
stack.c.

Field Documentation

struct sld_list* sld_stack::list

a sld_list containing non-contiguous data

SLD_UINT sld_stack::size

contains the size of the sld_stack

sld_stack_type sld_stack::stack_type

can exist in a resizeable array or a linked list

struct sld_vector* sld_stack::vector

a sld_vector containing contiguous data


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