Open CASCADE Technology
6.5.4
|
The class <StackManager> provides primitive facilities for managing
stack-based storage.
#include <MMgt_StackManager.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | MMgt_StackManager () |
Constructs a StackManager with an empty free stack. | |
Standard_Address | Allocate (const Standard_Integer size) |
Returns the address of a storage of the given size located on the top of the free stack. | |
void | Free (Standard_Address &aStack, const Standard_Integer aSize) |
Deallocates the storage of the given size from the free stack and nullify the address. | |
MMgt_StackManager | ShallowCopy () const |
There is no way to have a "ShallowCopy" of a "StackManager" | |
void | ShallowDump (Standard_OStream &S) const |
Prints the contents of <me> on the stream <s>. | |
void | Destructor () |
Deallocates the storage associated to stack. Delete <me>. | |
~MMgt_StackManager () |
MMgt_StackManager::~MMgt_StackManager | ( | ) | [inline] |
void MMgt_StackManager::Free | ( | Standard_Address & | aStack, |
const Standard_Integer | aSize | ||
) |
void MMgt_StackManager::ShallowDump | ( | Standard_OStream & | S | ) | const |