Allocate some memory at construction and release it at destruction. More...
Public Member Functions | |
MemoryReserve () | |
void | release () |
~MemoryReserve () | |
MemoryReserve () | |
void | Free () |
~MemoryReserve () | |
Data Fields | |
char * | myBuf |
Allocate some memory at construction and release it at destruction.
Is used to be able to continue working after mesh generation or visualization break due to lack of memory
SMESH::MemoryReserve::MemoryReserve | ( | ) |
SMESH::MemoryReserve::~MemoryReserve | ( | ) |
References release().
SMESH::MemoryReserve::MemoryReserve | ( | ) |
SMESH::MemoryReserve::~MemoryReserve | ( | ) |
References Free().
void SMESH::MemoryReserve::Free | ( | ) |
References myBuf.
Referenced by ~MemoryReserve().
void SMESH::MemoryReserve::release | ( | ) |
References myBuf.
Referenced by SMESHGUI_BaseComputeOp::computeMesh(), SMESHGUI_BaseComputeOp::evaluateMesh(), SMESHGUI_PrecomputeOp::onPreview(), and ~MemoryReserve().