MFEM v2.0
Public Member Functions | Private Attributes
Stack< Elem, Num > Class Template Reference

#include <mem_alloc.hpp>

List of all members.

Public Member Functions

 Stack ()
int Size ()
void Push (Elem E)
Elem Pop ()
void Clear ()
 ~Stack ()

Private Attributes

StackPart< Elem, Num > * TopPart
StackPart< Elem, Num > * TopFreePart
int UsedInTop
int SSize

Detailed Description

template<class Elem, int Num>
class Stack< Elem, Num >

Definition at line 25 of file mem_alloc.hpp.


Constructor & Destructor Documentation

template<class Elem, int Num>
Stack< Elem, Num >::Stack ( ) [inline]

Definition at line 31 of file mem_alloc.hpp.

template<class Elem, int Num>
Stack< Elem, Num >::~Stack ( ) [inline]

Definition at line 36 of file mem_alloc.hpp.


Member Function Documentation

template<class Elem , int Num>
void Stack< Elem, Num >::Clear ( )

Definition at line 73 of file mem_alloc.hpp.

Referenced by Stack< Elem *, Num >::~Stack().

template<class Elem , int Num>
Elem Stack< Elem, Num >::Pop ( )

Definition at line 58 of file mem_alloc.hpp.

References StackPart< Elem, Num >::Elements, and StackPart< Elem, Num >::Prev.

template<class Elem, int Num>
void Stack< Elem, Num >::Push ( Elem  E)

Definition at line 40 of file mem_alloc.hpp.

References StackPart< Elem, Num >::Elements, and StackPart< Elem, Num >::Prev.

template<class Elem, int Num>
int Stack< Elem, Num >::Size ( ) [inline]

Definition at line 32 of file mem_alloc.hpp.


Member Data Documentation

template<class Elem, int Num>
int Stack< Elem, Num >::SSize [private]

Definition at line 29 of file mem_alloc.hpp.

Referenced by Stack< Elem *, Num >::Size(), and Stack< Elem *, Num >::Stack().

template<class Elem, int Num>
StackPart<Elem, Num> * Stack< Elem, Num >::TopFreePart [private]

Definition at line 28 of file mem_alloc.hpp.

Referenced by Stack< Elem *, Num >::Stack().

template<class Elem, int Num>
StackPart<Elem, Num>* Stack< Elem, Num >::TopPart [private]

Definition at line 28 of file mem_alloc.hpp.

Referenced by Stack< Elem *, Num >::Stack().

template<class Elem, int Num>
int Stack< Elem, Num >::UsedInTop [private]

Definition at line 29 of file mem_alloc.hpp.

Referenced by Stack< Elem *, Num >::Stack().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines