votStack.c File Reference

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

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

Functions

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


Detailed Description

(Internal) Methods to manage the parser Element stack.

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

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

Function Documentation

vot_clearStack ( Stack *  st  ) 

Clear the stack (internal method).

vot_clearStack -- Clear the stack (internal method)

Parameters:
st A pointer to a Stack
Returns:
nothing

int vot_isEmpty ( Stack *  st  ) 

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

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

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

Stack * vot_newStack ( void   ) 

Makes a new stack (internal method).

vot_newStack -- Makes a new stack (internal method)

Returns:
A pointer to a new Stack.

vot_printStack ( Stack *  st  ) 

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

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

Parameters:
st A pointer to a Stack
Returns:
nothing

Element * votPeek ( Stack *  st  ) 

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

votPeek -- Peek at Element on top of the Stack (internal 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 (internal method).

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

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

votPush ( Stack *  st,
Element *  elem 
)

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

votPush -- Push a Node to the top of the stack (internal 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 May 5 16:32:13 2010 for libVOTable by  doxygen 1.5.9