votStack.c File Reference

(Private) Methods to manage the parser Element stack. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <strings.h>
#include "votParseP.h"

Functions

Stackvot_newStack (void)
 Makes a new stack (private method).
ElementvotPop (Stack *st)
 Return a Node from the top of the stack (private method).
void votPush (Stack *st, Element *elem)
 Push a Node to the top of the stack (private method).
ElementvotPeek (Stack *st)
 Peek at Element on top of the Stack (private method).
int vot_isEmpty (Stack *st)
 Checks to see if the stack is empty (private method).
void vot_clearStack (Stack *st)
 Clear the stack (private method).
void vot_printStack (Stack *st)
 Print the name of all the stack elements (private method).


Detailed Description

(Private) Methods to manage the parser Element stack.

VOTSTACK.C -- (Private) Methods to manage the parser Element stack.

Author:
Mike Fitzpatrick and Eric Timmermann
Date:
8/03/09

Function Documentation

void vot_clearStack ( Stack st  ) 

Clear the stack (private method).

vot_clearStack -- Clear the stack (private method)

Parameters:
st A pointer to a Stack
Returns:
nothing

int vot_isEmpty ( Stack st  ) 

Checks to see if the stack is empty (private method).

vot_isEmpty -- Checks to see if the stack is empty (private method)

Parameters:
st A pointer to a Stack
Returns:
1 if true, 0 if false.

Stack* vot_newStack ( void   ) 

Makes a new stack (private method).

vot_newStack -- Makes a new stack (private method)

Returns:
A pointer to a new Stack.

void vot_printStack ( Stack st  ) 

Print the name of all the stack elements (private method).

vot_printStack -- Print the name of all the stack elements (private method)

Parameters:
st A pointer to a Stack
Returns:
nothing

Element* votPeek ( Stack st  ) 

Peek at Element on top of the Stack (private method).

votPeek -- Peek at Element on top of the Stack (private method)

Parameters:
st A pointer to a Stack
Returns:
A pointer to the head Element, or NULL if empty

Element* votPop ( Stack st  ) 

Return a Node from the top of the stack (private method).

votPop -- Return a Node from the top of the stack (private method)

Parameters:
st A pointer to a Stack
Returns:
A pointer to the popped Element.

void votPush ( Stack st,
Element elem 
)

Push a Node to the top of the stack (private method).

votPush -- Push a Node to the top of the stack (private method)

Parameters:
st A pointer to a Stack
elem A pointer to an element to be put on the stack
Returns:
nothing


Generated on Wed Feb 27 21:10:09 2013 for libVOTable by  doxygen 1.5.9