Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
SMESH::MemoryReserve Struct Reference

Allocate some memory at construction and release it at destruction. More...

List of all members.

Public Member Functions

 MemoryReserve ()
void release ()
 ~MemoryReserve ()
 MemoryReserve ()
void Free ()
 ~MemoryReserve ()

Public Attributes

char * myBuf

Detailed Description

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

Definition at line 133 of file SMESHGUI_ComputeDlg.cxx.


Constructor & Destructor Documentation

Definition at line 136 of file SMESHGUI_ComputeDlg.cxx.

: myBuf( new char[1024*1024*1] ){} // 1M

Definition at line 138 of file SMESHGUI_ComputeDlg.cxx.

{ release(); }

Here is the call graph for this function:

Definition at line 94 of file SMESHGUI_VTKUtils.cxx.

: myBuf( new char[1024*1024*1] ){} // 1M

Definition at line 96 of file SMESHGUI_VTKUtils.cxx.

{ Free(); }

Here is the call graph for this function:


Member Function Documentation

void SMESH::MemoryReserve::Free ( ) [inline]

Definition at line 95 of file SMESHGUI_VTKUtils.cxx.

{ if (myBuf) { delete [] myBuf; myBuf = 0; }}

Here is the caller graph for this function:

void SMESH::MemoryReserve::release ( ) [inline]

Definition at line 137 of file SMESHGUI_ComputeDlg.cxx.

{ delete [] myBuf; myBuf = 0; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 135 of file SMESHGUI_ComputeDlg.cxx.


The documentation for this struct was generated from the following files: