pool_block_allocator Class Reference

Search Toolkit Book for pool_block_allocator

List of all members.

Detailed Description

Definition at line 80 of file stress.cpp.

Static Public Member Functions

static bm::word_tallocate (size_t n, const void *)
static void deallocate (bm::word_t *p, size_t n)

Static Private Attributes

static bm::word_tfree_bit_blocks_ []
static int bit_blocks_idx_ = 0
static bm::word_tgap_bit_blocks0_ []
static int gap_blocks_idx0_ = 0
static bm::word_tgap_bit_blocks1_ []
static int gap_blocks_idx1_ = 0
static bm::word_tgap_bit_blocks2_ []
static int gap_blocks_idx2_ = 0
static bm::word_tgap_bit_blocks3_ []
static int gap_blocks_idx3_ = 0


Member Function Documentation

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

Definition at line 84 of file stress.cpp.

References bit_blocks_idx_, free_bit_blocks_, gap_bit_blocks0_, gap_bit_blocks1_, gap_bit_blocks2_, gap_bit_blocks3_, gap_blocks_idx0_, gap_blocks_idx1_, gap_blocks_idx2_, gap_blocks_idx3_, pool_allocate(), and bm::set_block_size.

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

Definition at line 123 of file stress.cpp.

References bit_blocks_idx_, free_bit_blocks_, gap_bit_blocks0_, gap_bit_blocks1_, gap_bit_blocks2_, gap_bit_blocks3_, gap_blocks_idx0_, gap_blocks_idx1_, gap_blocks_idx2_, gap_blocks_idx3_, pool_free(), and bm::set_block_size.


Member Data Documentation

int pool_block_allocator::bit_blocks_idx_ = 0 [static, private]
 

Definition at line 164 of file stress.cpp.

Referenced by allocate(), and deallocate().

bm::word_t * pool_block_allocator::free_bit_blocks_ [static, private]
 

Definition at line 163 of file stress.cpp.

Referenced by allocate(), and deallocate().

bm::word_t * pool_block_allocator::gap_bit_blocks0_ [static, private]
 

Definition at line 166 of file stress.cpp.

Referenced by allocate(), and deallocate().

bm::word_t * pool_block_allocator::gap_bit_blocks1_ [static, private]
 

Definition at line 169 of file stress.cpp.

Referenced by allocate(), and deallocate().

bm::word_t * pool_block_allocator::gap_bit_blocks2_ [static, private]
 

Definition at line 172 of file stress.cpp.

Referenced by allocate(), and deallocate().

bm::word_t * pool_block_allocator::gap_bit_blocks3_ [static, private]
 

Definition at line 175 of file stress.cpp.

Referenced by allocate(), and deallocate().

int pool_block_allocator::gap_blocks_idx0_ = 0 [static, private]
 

Definition at line 167 of file stress.cpp.

Referenced by allocate(), and deallocate().

int pool_block_allocator::gap_blocks_idx1_ = 0 [static, private]
 

Definition at line 170 of file stress.cpp.

Referenced by allocate(), and deallocate().

int pool_block_allocator::gap_blocks_idx2_ = 0 [static, private]
 

Definition at line 173 of file stress.cpp.

Referenced by allocate(), and deallocate().

int pool_block_allocator::gap_blocks_idx3_ = 0 [static, private]
 

Definition at line 176 of file stress.cpp.

Referenced by allocate(), and deallocate().


The documentation for this class was generated from the following file:
Generated on Wed Dec 9 08:12:58 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:20:15 2009 by modify_doxy.py rev. 173732