Version: 6.3.1
Public Member Functions | Data Fields

MemoryReserve Struct Reference

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

Public Member Functions

 MemoryReserve ()
 ~MemoryReserve ()

Data Fields

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 breaks due to lack of memory

Definition at line 71 of file SMESH_subMesh.cxx.


Constructor & Destructor Documentation

MemoryReserve.MemoryReserve ( )

Definition at line 74 of file SMESH_subMesh.cxx.

: myBuf( new char[1024*1024*2] ){}
MemoryReserve.~MemoryReserve ( )

Definition at line 75 of file SMESH_subMesh.cxx.

{ delete [] myBuf; }

Field Documentation

Definition at line 73 of file SMESH_subMesh.cxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS