Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
NIS_Allocator Class Reference

#include <NIS_Allocator.hxx>

Inheritance diagram for NIS_Allocator:
Inheritance graph
[legend]

Public Member Functions

 NIS_Allocator (const size_t theBlockSize=24600)
Standard_Size NAllocated () const
Standard_Size NFreed () const
void ResetCounters ()
virtual voidAllocate (const size_t size)
virtual void Free (void *anAddress)
 Free a previously allocated memory. Does nothing.

Detailed Description

Subclass of Incremental Allocator. It is aware of the total allocated and released memory. Used in NIS_Interactive context as private allocator that manages all memory used by interactive objects.


Constructor & Destructor Documentation

NIS_Allocator::NIS_Allocator ( const size_t  theBlockSize = 24600)

Constructor.


Member Function Documentation

virtual void* NIS_Allocator::Allocate ( const size_t  size) [virtual]

Allocate memory with given size. Returns NULL on failure

Reimplemented from NCollection_IncAllocator.

virtual void NIS_Allocator::Free ( void anAddress) [virtual]

Reimplemented from NCollection_IncAllocator.

Query the total number of allocated bytes

Query the total number of released bytes

Set both counters to zero. Should be called with method Reset of the base class NCollection_IncAlocator.


The documentation for this class was generated from the following file: