bm::block_allocator Class Reference
[Memory AllocationMemory Allocation]

Search Toolkit Book for bm::block_allocator

#include <bmalloc.h>

List of all members.


Detailed Description

Default malloc based bitblock allocator class.

Functions allocate and deallocate conform to STL allocator specs.

Definition at line 49 of file bmalloc.h.

Static Public Member Functions

static bm::word_tallocate (size_t n, const void *)
 The member function allocates storage for an array of n bm::word_t elements, by calling malloc.
static void deallocate (bm::word_t *p, size_t)
 The member function frees storage for an array of n bm::word_t elements, by calling free.


Member Function Documentation

static bm::word_t* bm::block_allocator::allocate size_t  n,
const void * 
[inline, static]
 

The member function allocates storage for an array of n bm::word_t elements, by calling malloc.

Returns:
pointer to the allocated memory.

Definition at line 57 of file bmalloc.h.

References malloc().

static void bm::block_allocator::deallocate bm::word_t p,
size_t 
[inline, static]
 

The member function frees storage for an array of n bm::word_t elements, by calling free.

Definition at line 81 of file bmalloc.h.

References free().


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 16:06:06 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:38 2009 by modify_doxy.py rev. 173732