Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
btGenericPoolAllocator Class Reference

Generic Allocator with pools. More...

#include <btGenericPoolAllocator.h>

List of all members.

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 ()

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

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.


Constructor & Destructor Documentation

btGenericPoolAllocator::btGenericPoolAllocator ( size_t  pool_element_size,
size_t  pool_element_count 
) [inline]

Definition at line 138 of file btGenericPoolAllocator.h.


Member Function Documentation

void* btGenericPoolAllocator::allocate ( size_t  size_bytes)

Allocates memory in pool.

Parameters:
size_bytessize in bytes of the buffer
void* btGenericPoolAllocator::failback_alloc ( size_t  size_bytes) [protected]
bool btGenericPoolAllocator::failback_free ( void *  pointer) [protected]
bool btGenericPoolAllocator::freeMemory ( void *  pointer)

Definition at line 123 of file btGenericPoolAllocator.h.


Member Data Documentation

Definition at line 120 of file btGenericPoolAllocator.h.

Definition at line 117 of file btGenericPoolAllocator.h.

Definition at line 116 of file btGenericPoolAllocator.h.

Definition at line 119 of file btGenericPoolAllocator.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:32