Quash Shell  0.1
A simple yet powerfull shell program
 All Classes Files Functions Variables Typedefs Enumerations Macros
Public Attributes | List of all members
Example Struct Reference

A data structure generated by IMPLEMENT_DEQUE_STRUCT() to store the state of a deque. More...

#include <deque.h>

Public Attributes

Typedata
 
size_t cap
 
size_t front
 
size_t back
 
void(* destructor )(Type)
 

Detailed Description

A data structure generated by IMPLEMENT_DEQUE_STRUCT() to store the state of a deque.

Note
The members of this struct should not be accessed or modified directly. For modification please use the functions generated by the IMPLEMENT_DEQUE() macro.
See Also
IMPLEMENT_DEQUE()

Member Data Documentation

size_t Example::back

The index one greater than the last element of the queue

size_t Example::cap

The current capacity of the deque

Type* Example::data

The array holding the deque

void(* Example::destructor)(Type)

Optional destructor function pointer for the data type. This is called on every element in the queue when destroy_Example() is called.

Note
We will have a lab over function pointers later in the semester. If this doesn't make sense now then skip it or come to your TA for assistance if you really want to use it.
size_t Example::front

The index of the element at the front of the deque


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