MFEM v4.7.0
Finite element discretization library
|
#include <mem_alloc.hpp>
Public Member Functions | |
Stack () | |
Construct an empty stack. | |
int | Size () const |
Return the number of elements on the stack. | |
void | Push (Elem E) |
Push element 'E' on the stack. | |
Elem | Pop () |
Pop an element off the stack and return it. | |
void | Clear () |
Clear the elements off the stack. | |
void | Swap (Stack< Elem, Num > &other) |
Swap the data in this stack with the data in other. | |
size_t | MemoryUsage () const |
Return the number of bytes used by the stack. | |
~Stack () | |
Definition at line 30 of file mem_alloc.hpp.
|
inline |
Construct an empty stack.
Definition at line 37 of file mem_alloc.hpp.
|
inline |
Definition at line 52 of file mem_alloc.hpp.
void mfem::Stack< Elem, Num >::Clear | ( | ) |
Clear the elements off the stack.
Definition at line 93 of file mem_alloc.hpp.
size_t mfem::Stack< Elem, Num >::MemoryUsage | ( | ) | const |
Return the number of bytes used by the stack.
Definition at line 120 of file mem_alloc.hpp.
Elem mfem::Stack< Elem, Num >::Pop | ( | ) |
Pop an element off the stack and return it.
Definition at line 78 of file mem_alloc.hpp.
void mfem::Stack< Elem, Num >::Push | ( | Elem | E | ) |
Push element 'E' on the stack.
Definition at line 56 of file mem_alloc.hpp.
|
inline |
Return the number of elements on the stack.
Definition at line 39 of file mem_alloc.hpp.
void mfem::Stack< Elem, Num >::Swap | ( | Stack< Elem, Num > & | other | ) |
Swap the data in this stack with the data in other.
Definition at line 111 of file mem_alloc.hpp.