Classes | Defines | Functions

btGenericPoolAllocator.h File Reference

#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "LinearMath/btAlignedAllocator.h"
Include dependency graph for btGenericPoolAllocator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  btGenericMemoryPool
 Generic Pool class. More...
class  btGenericPoolAllocator
 Generic Allocator with pools. More...

Defines

#define BT_UINT_MAX   UINT_MAX
#define BT_DEFAULT_MAX_POOLS   16

Functions

void * btPoolAlloc (size_t size)
void * btPoolRealloc (void *ptr, size_t oldsize, size_t newsize)
void btPoolFree (void *ptr)

Detailed Description

Author:
Francisco Leon Najera. email projectileman@yahoo.com

General purpose allocator class

Definition in file btGenericPoolAllocator.h.


Define Documentation

#define BT_DEFAULT_MAX_POOLS   16

Definition at line 30 of file btGenericPoolAllocator.h.

#define BT_UINT_MAX   UINT_MAX

Definition at line 29 of file btGenericPoolAllocator.h.


Function Documentation

void* btPoolAlloc ( size_t  size  ) 

Definition at line 266 of file btGenericPoolAllocator.cpp.

void btPoolFree ( void *  ptr  ) 

Definition at line 280 of file btGenericPoolAllocator.cpp.

void* btPoolRealloc ( void *  ptr,
size_t  oldsize,
size_t  newsize 
)

Definition at line 271 of file btGenericPoolAllocator.cpp.