Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Stack< T > Class Template Reference

#include <Stack.h>

List of all members.

Public Member Functions

 Stack (uint32_t size)
 ~Stack ()
void clear ()
void push (T elt)
pop ()
bool empty ()
top ()
void print ()

Private Attributes

uint32_t maxSize
T * elements
int32_t topIndex

template<class T = uint32_t>
class Stack< T >


Constructor & Destructor Documentation

template<class T = uint32_t>
Stack< T >::Stack uint32_t  size  )  [inline]
 

Definition at line 11 of file Stack.h.

References Stack< T >::elements, Stack< T >::maxSize, and Stack< T >::topIndex.

template<class T = uint32_t>
Stack< T >::~Stack  )  [inline]
 

Definition at line 16 of file Stack.h.

References Stack< T >::elements.


Member Function Documentation

template<class T = uint32_t>
void Stack< T >::clear  )  [inline]
 

Definition at line 20 of file Stack.h.

References Stack< T >::topIndex.

Referenced by FlowGraph::buildLoops().

template<class T = uint32_t>
bool Stack< T >::empty  )  [inline]
 

Definition at line 32 of file Stack.h.

References Stack< T >::topIndex.

Referenced by FlowGraph::buildLoops().

template<class T = uint32_t>
T Stack< T >::pop  )  [inline]
 

Definition at line 28 of file Stack.h.

References ASSERT, Stack< T >::elements, and Stack< T >::topIndex.

Referenced by FlowGraph::buildLoops().

template<class T = uint32_t>
void Stack< T >::print  )  [inline]
 

Definition at line 38 of file Stack.h.

References Stack< T >::maxSize, PRINT_INFOR, and Stack< T >::topIndex.

template<class T = uint32_t>
void Stack< T >::push elt  )  [inline]
 

Definition at line 24 of file Stack.h.

References ASSERT, Stack< T >::elements, Stack< T >::maxSize, and Stack< T >::topIndex.

Referenced by FlowGraph::buildLoops().

template<class T = uint32_t>
T Stack< T >::top  )  [inline]
 

Definition at line 35 of file Stack.h.

References Stack< T >::elements, and Stack< T >::topIndex.


Member Data Documentation

template<class T = uint32_t>
T* Stack< T >::elements [private]
 

Definition at line 8 of file Stack.h.

Referenced by Stack< T >::pop(), Stack< T >::push(), Stack< T >::Stack(), Stack< T >::top(), and Stack< T >::~Stack().

template<class T = uint32_t>
uint32_t Stack< T >::maxSize [private]
 

Definition at line 7 of file Stack.h.

Referenced by Stack< T >::print(), Stack< T >::push(), and Stack< T >::Stack().

template<class T = uint32_t>
int32_t Stack< T >::topIndex [private]
 

Definition at line 9 of file Stack.h.

Referenced by Stack< T >::clear(), Stack< T >::empty(), Stack< T >::pop(), Stack< T >::print(), Stack< T >::push(), Stack< T >::Stack(), and Stack< T >::top().


The documentation for this class was generated from the following file:
Generated on Mon Jan 28 11:08:41 2008 for PMaCInstrumentor by doxygen 1.3.5