dlvhex  2.5.0
bm::ptr_allocator Class Reference

Default malloc based bitblock allocator class. More...

#include <vs10/bm/bmalloc.h>

Static Public Member Functions

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

Detailed Description

Default malloc based bitblock allocator class.

Functions allocate and deallocate conform to STL allocator specs.

Definition at line 104 of file bmalloc.h.


Member Function Documentation

static void* bm::ptr_allocator::allocate ( size_t  n,
const void *   
) [inline, static]

The member function allocates storage for an array of n void* elements, by calling malloc.

Returns:
pointer to the allocated memory.

Definition at line 112 of file bmalloc.h.

static void* bm::ptr_allocator::allocate ( size_t  n,
const void *   
) [inline, static]

The member function allocates storage for an array of n void* elements, by calling malloc.

Returns:
pointer to the allocated memory.

Definition at line 112 of file bmalloc.h.

static void bm::ptr_allocator::deallocate ( void *  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 126 of file bmalloc.h.

static void bm::ptr_allocator::deallocate ( void *  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 126 of file bmalloc.h.


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