axutil_allocator Struct Reference
[allocator]

Axis2 memory allocator. More...

#include <axutil_allocator.h>

List of all members.

Public Attributes

void *(* malloc_fn )(struct axutil_allocator *allocator, size_t size)
void *(* realloc )(struct axutil_allocator *allocator, void *ptr, size_t size)
void(* free_fn )(struct axutil_allocator *allocator, void *ptr)
void * local_pool
void * global_pool
void * current_pool


Detailed Description

Axis2 memory allocator.

Encapsulator for memory allocating routines


Member Data Documentation

void* axutil_allocator::current_pool
 

memory pool in use currently

void( * axutil_allocator::free_fn)(struct axutil_allocator *allocator, void *ptr)
 

frees memory

Parameters:
allocator pointer to allocator struct. In the default implementation this is not used, however this parameter is useful when the allocator implementation is dealing with a memory pool.
ptr pointer to be freed

void* axutil_allocator::global_pool
 

global memory pool

void* axutil_allocator::local_pool
 

local memory pool

void*( * axutil_allocator::malloc_fn)(struct axutil_allocator *allocator, size_t size)
 

allocates memory

Parameters:
allocator pointer to allocator struct. In the default implementation this is not used, however this parameter is useful when the allocator implementation is dealing with a memory pool.
size size of the memory block to be allocated
Returns:
pointer to the allocated memory block

void*( * axutil_allocator::realloc)(struct axutil_allocator *allocator, void *ptr, size_t size)
 

re-llocates memory

Parameters:
allocator pointer to allocator struct. In the default implementation this is not used, however this parameter is useful when the allocator implementation is dealing with a memory pool.
ptr memory block who's size to be changed
size size of the memory block to be allocated
Returns:
pointer to the allocated memory block


The documentation for this struct was generated from the following file:
Generated on Thu May 3 12:31:02 2007 for Axis2/C by  doxygen 1.4.6