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

btGenericMemoryPool Class Reference

#include <btGenericPoolAllocator.h>

List of all members.

Detailed Description

Generic Pool class.

Definition at line 34 of file btGenericPoolAllocator.h.

Public Member Functions

void * allocate (size_t size_bytes)
 Allocates memory in pool.
 btGenericMemoryPool (size_t element_size, size_t element_count)
void end_pool ()
bool freeMemory (void *pointer)
size_t gem_element_size ()
size_t get_allocated_count ()
void * get_element_data (size_t element_index)
size_t get_free_positions_count ()
size_t get_max_element_count ()
size_t get_pool_capacity ()
void init_pool (size_t element_size, size_t element_count)

Public Attributes

size_t m_allocated_count
size_t * m_allocated_sizes
size_t * m_free_nodes
size_t m_free_nodes_count
unsigned char * m_pool

Protected Member Functions

size_t allocate_from_free_nodes (size_t num_elements)
 *************** btGenericMemoryPool ******************///////////
size_t allocate_from_pool (size_t num_elements)

Protected Attributes

size_t m_element_size
size_t m_max_element_count

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

Generated by  Doxygen 1.6.0   Back to index