Blender V2.61 - r43446
Classes | Defines | Functions

btGenericPoolAllocator.h File Reference

#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "LinearMath/btAlignedAllocator.h"

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.

Referenced by btGenericPoolAllocator::push_new_pool().

#define BT_UINT_MAX   UINT_MAX

Function Documentation

void* btPoolAlloc ( size_t  size)

Definition at line 266 of file btGenericPoolAllocator.cpp.

References btGenericPoolAllocator::allocate().

Referenced by btPoolRealloc().

void btPoolFree ( void *  ptr)

Definition at line 280 of file btGenericPoolAllocator.cpp.

References btGenericPoolAllocator::freeMemory().

Referenced by btPoolRealloc().

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

Definition at line 271 of file btGenericPoolAllocator.cpp.

References btPoolAlloc(), and btPoolFree().