Logo Search packages:      
Sourcecode: blender version File versions  Download package

btGenericPoolAllocator Class Reference

#include <btGenericPoolAllocator.h>

Inherited by GIM_STANDARD_ALLOCATOR.

List of all members.


Detailed Description

Generic Allocator with pools.

General purpose Allocator which can create Memory Pools dynamiacally as needed.

Definition at line 113 of file btGenericPoolAllocator.h.


Public Member Functions

void * allocate (size_t size_bytes)
 Allocates memory in pool.
 btGenericPoolAllocator (size_t pool_element_size, size_t pool_element_count)
bool freeMemory (void *pointer)
size_t get_pool_capacity ()
virtual ~btGenericPoolAllocator ()
 *******************! btGenericPoolAllocator *******************!///

Public Attributes

size_t m_pool_count
btGenericMemoryPoolm_pools [BT_DEFAULT_MAX_POOLS]

Protected Member Functions

void * failback_alloc (size_t size_bytes)
bool failback_free (void *pointer)
btGenericMemoryPoolpush_new_pool ()

Protected Attributes

size_t m_pool_element_count
size_t m_pool_element_size

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index