#include <tMemStack.h>
Public Member Functions | |
tMemStack (int minSize=10) | |
~tMemStack () | |
void * | GetMem () const |
int | GetSize () const |
void | IncreaseMem () |
Private Member Functions | |
tMemStackItem & | Item () const |
Private Attributes | |
int | index |
Definition at line 37 of file tMemStack.h.
tMemStack::tMemStack | ( | int | minSize = 10 |
) |
tMemStack::~tMemStack | ( | ) |
Definition at line 128 of file tMemStack.cpp.
References index, st_Breakpoint(), ST_Index(), and st_Pop().
00129 { 00130 st_Pop(); 00131 00132 #ifdef DEBUG 00133 if( index != ST_Index() ) 00134 { 00135 st_Breakpoint(); 00136 } 00137 #endif 00138 }
void * tMemStack::GetMem | ( | ) | const |
Definition at line 142 of file tMemStack.cpp.
References Item(), and tMemStackItem::memory.
int tMemStack::GetSize | ( | ) | const |
Definition at line 148 of file tMemStack.cpp.
References Item(), and tMemStackItem::size.
void tMemStack::IncreaseMem | ( | ) |
Definition at line 154 of file tMemStack.cpp.
References tMemStackItem::Alloc(), Item(), and ST_Size().
tMemStackItem & tMemStack::Item | ( | ) | const [private] |
Definition at line 114 of file tMemStack.cpp.
References index, and ST_Stack().
Referenced by GetMem(), GetSize(), IncreaseMem(), and tMemStack().
int tMemStack::index [private] |