__gnu_cxx::__pool_alloc_base Class Reference

Base class for __pool_alloc. More...

#include <pool_allocator.h>

Inheritance diagram for __gnu_cxx::__pool_alloc_base:

__gnu_cxx::__pool_alloc< _Tp > List of all members.

Protected Types

 _S_align = 8
 _S_max_bytes = 128
 _S_free_list_size = (size_t)_S_max_bytes / (size_t)_S_align
enum  { _S_align = 8 }
enum  { _S_max_bytes = 128 }
enum  { _S_free_list_size = (size_t)_S_max_bytes / (size_t)_S_align }

Protected Member Functions

size_t _M_round_up (size_t __bytes)
_Obj *volatile * _M_get_free_list (size_t __bytes)
mutex_type_M_get_mutex ()
void * _M_refill (size_t __n)
char * _M_allocate_chunk (size_t __n, int &__nobjs)

Static Protected Attributes

static _Obj *volatile _S_free_list [_S_free_list_size]
static char * _S_start_free
static char * _S_end_free
static size_t _S_heap_size

Classes

union  _Obj

Detailed Description

Base class for __pool_alloc.

Definition at line 77 of file pool_allocator.h.


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
_S_align 

Definition at line 81 of file pool_allocator.h.

anonymous enum [protected]

Enumerator:
_S_max_bytes 

Definition at line 82 of file pool_allocator.h.

anonymous enum [protected]

Enumerator:
_S_free_list_size 

Definition at line 83 of file pool_allocator.h.


Member Function Documentation

char* __gnu_cxx::__pool_alloc_base::_M_allocate_chunk ( size_t  __n,
int &  __nobjs 
) [protected]

_Obj* volatile* __gnu_cxx::__pool_alloc_base::_M_get_free_list ( size_t  __bytes  )  [protected]

Referenced by __gnu_cxx::__pool_alloc< _Tp >::allocate(), and __gnu_cxx::__pool_alloc< _Tp >::deallocate().

mutex_type& __gnu_cxx::__pool_alloc_base::_M_get_mutex (  )  [protected]

Referenced by __gnu_cxx::__pool_alloc< _Tp >::allocate(), and __gnu_cxx::__pool_alloc< _Tp >::deallocate().

void* __gnu_cxx::__pool_alloc_base::_M_refill ( size_t  __n  )  [protected]

Referenced by __gnu_cxx::__pool_alloc< _Tp >::allocate().

size_t __gnu_cxx::__pool_alloc_base::_M_round_up ( size_t  __bytes  )  [inline, protected]

Definition at line 99 of file pool_allocator.h.

References _S_align.

Referenced by __gnu_cxx::__pool_alloc< _Tp >::allocate().


Member Data Documentation

char* __gnu_cxx::__pool_alloc_base::_S_end_free [static, protected]

Definition at line 95 of file pool_allocator.h.

_Obj* volatile __gnu_cxx::__pool_alloc_base::_S_free_list[_S_free_list_size] [static, protected]

Definition at line 91 of file pool_allocator.h.

size_t __gnu_cxx::__pool_alloc_base::_S_heap_size [static, protected]

Definition at line 96 of file pool_allocator.h.

char* __gnu_cxx::__pool_alloc_base::_S_start_free [static, protected]

Definition at line 94 of file pool_allocator.h.


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:58:02 2010 for GNU C++ STL by  doxygen 1.4.7