Home

mmgr.hxx File Reference

#include <stdio.h>
#include <stdlib.h>
#include "dcl_base.h"
#include "logical.h"
#include "static_types.hxx"
#include <alloca.h>
#include <new>

Classes

class  ACIS_OBJECT
 Provides a base class for class level memory management of ACIS classes. More...

Defines

#define ACIS_ALLOCA(alloc_size)   (((alloc_size) > 8) ? alloca((alloc_size)) : alloca(8))
 ACIS wrapper for alloca.
#define ACIS_CALLOC(alloc_num, alloc_size)   acis_calloc(alloc_num,alloc_size,eDefault,__FILE__,__LINE__,&alloc_file_index);
 ACIS wrapper for calloc.
#define ACIS_DELETE   delete
 ACIS wrapper for C++ delete - Complements ACIS_NEW.
#define ACIS_FREE(alloc_ptr)   acis_free(alloc_ptr);
 ACIS wrapper for free.
#define ACIS_MALLOC(alloc_size)   acis_malloc(alloc_size,eDefault,__FILE__,__LINE__,&alloc_file_index);
 ACIS wrapper for malloc.
#define ACIS_NEW   new(eDefault,__FILE__,__LINE__,&alloc_file_index)
 ACIS wrapper for C++ new - Complements ACIS_DELETE.
#define ACIS_REALLOC(memblock, alloc_size)   acis_realloc(memblock,alloc_size,eDefault,__FILE__,__LINE__,&alloc_file_index);
 ACIS wrapper for realloc.
#define ACIS_SAFE_REALLOC(memblock, old_size, new_size)   acis_safe_realloc(memblock,old_size,new_size,eDefault,__FILE__,__LINE__,&alloc_file_index);
 ACIS wrapper for realloc.
#define ACIS_STRDUP(orgstring)   acis_strdup(orgstring,eDefault,__FILE__,__LINE__,&alloc_file_index);
 ACIS wrapper for strdup.
#define MMGR_FREELIST_THIS
 Use this macro inside your class definition to enhance your class with ACIS memory management and ACIS freelisting.
#define MMGR_SUPPORT_THIS
 Use this macro inside your class definition to enhance your class with ACIS memory management.
#define STD_CAST   (ACIS_STD_TYPE_OBJECT*)
 Informs the ACIS memory manager that a simple data type is being deleted.

Enumerations

enum  AcisMemCall
 Specifies the style of allocation. More...
enum  AcisMemType
 Specifies the persistence of memory allocated via the ACIS memory manager. More...

Detailed Description