MEM_ALLOCATOR Class Reference

#include <memblk.h>

List of all members.

Public Member Functions

void init (void *(*ext_malloc)(inT32), void(*ext_free)(void *), inT32 firstsize, inT32 lastsize, inT32 maxchunk)
void * alloc (inT32 size, void *caller)
void * alloc_p (inT32 size, void *caller)
void dealloc (void *ptr, void *caller)
void check (const char *string, inT8 level)
void reduce_counts ()
void display_counts ()
MEMBLOCKnew_block (inT32 minsize)
uinT16 hash_caller (void *addr)

Public Attributes

inT16 blockcount
uinT16 malloc_serial
MEMBLOCKtopblock
MEMBLOCKcurrblock
MALLOC_CALLcallers
void *(* malloc )(inT32)
void(* free )(void *)
inT32 maxsize
inT32 biggestblock
inT32 totalmem
inT32 memsize
uinT32 malloc_div_ratio
uinT32 malloc_minor_serial
uinT32 malloc_auto_count
inT32 call_bits
inT32 entries
MEMBLOCK memblocks [MAXBLOCKS]

Member Function Documentation

void * MEM_ALLOCATOR::alloc ( inT32  size,
void *  caller 
)
void * MEM_ALLOCATOR::alloc_p ( inT32  size,
void *  caller 
)
void MEM_ALLOCATOR::check ( const char *  string,
inT8  level 
)
void MEM_ALLOCATOR::dealloc ( void *  ptr,
void *  caller 
)
void MEM_ALLOCATOR::display_counts (  ) 
uinT16 MEM_ALLOCATOR::hash_caller ( void *  addr  ) 
void MEM_ALLOCATOR::init ( void *(*)(inT32 ext_malloc,
void(*)(void *)  ext_free,
inT32  firstsize,
inT32  lastsize,
inT32  maxchunk 
)
MEMBLOCK * MEM_ALLOCATOR::new_block ( inT32  minsize  ) 
void MEM_ALLOCATOR::reduce_counts (  ) 

Member Data Documentation

void(* MEM_ALLOCATOR::free)(void *)

The documentation for this class was generated from the following files:
Generated on Sun Jul 18 17:11:10 2010 for Tesseract by  doxygen 1.6.3