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

#include <mem_alloc.hpp>

Collaboration diagram for MemAlloc< Elem, Num >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MemAlloc ()
Elem * Alloc ()
void Free (Elem *)
void Clear ()
 ~MemAlloc ()

Private Attributes

MemAllocNode< Elem, Num > * Last
int AllocatedInLast
Stack< Elem *, Num > UsedMem

Detailed Description

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

Definition at line 100 of file mem_alloc.hpp.


Constructor & Destructor Documentation

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

Definition at line 111 of file mem_alloc.hpp.

References MemAlloc< Elem, Num >::Clear().


Member Function Documentation

template<class Elem , int Num>
Elem * MemAlloc< Elem, Num >::Alloc ( )

Definition at line 115 of file mem_alloc.hpp.

References MemAllocNode< Elem, Num >::Prev.

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

Definition at line 137 of file mem_alloc.hpp.

References MemAllocNode< Elem, Num >::Prev.

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

template<class Elem , int Num>
void MemAlloc< Elem, Num >::Free ( Elem *  E)

Definition at line 131 of file mem_alloc.hpp.


Member Data Documentation

template<class Elem, int Num>
int MemAlloc< Elem, Num >::AllocatedInLast [private]

Definition at line 104 of file mem_alloc.hpp.

Referenced by MemAlloc< Elem, Num >::MemAlloc().

template<class Elem, int Num>
MemAllocNode<Elem, Num>* MemAlloc< Elem, Num >::Last [private]

Definition at line 103 of file mem_alloc.hpp.

Referenced by MemAlloc< Elem, Num >::MemAlloc().

template<class Elem, int Num>
Stack<Elem *, Num> MemAlloc< Elem, Num >::UsedMem [private]

Definition at line 105 of file mem_alloc.hpp.


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