#include <bitmap_allocator.h>
Inheritance diagram for __gnu_cxx::bitmap_allocator< _Tp >:
Public Types | |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef _Tp * | pointer |
typedef const _Tp * | const_pointer |
typedef _Tp & | reference |
typedef const _Tp & | const_reference |
typedef _Tp | value_type |
Public Member Functions | |
bitmap_allocator () throw () | |
bitmap_allocator (const bitmap_allocator &) | |
template<typename _Tp1> | bitmap_allocator (const bitmap_allocator< _Tp1 > &) throw () |
~bitmap_allocator () throw () | |
pointer | allocate (size_type __n) |
pointer | allocate (size_type __n, typename bitmap_allocator< void >::const_pointer) |
void | deallocate (pointer __p, size_type __n) throw () |
pointer | address (reference r) const |
const_pointer | address (const_reference r) const |
size_type | max_size (void) const throw () |
void | construct (pointer p, const_reference __data) |
void | destroy (pointer p) |
Private Types | |
typedef std::pair< pointer, pointer > | _Block_pair |
typedef __gnu_cxx::new_allocator< _Block_pair > | _BPVec_allocator_type |
typedef std::vector< _Block_pair, _BPVec_allocator_type > | _BPVector |
Static Private Member Functions | |
void | _S_bit_allocate (unsigned int *__pbmap, unsigned int __pos) throw () |
void | _S_bit_free (unsigned int *__pbmap, unsigned int __pos) throw () |
void * | _S_memory_get (size_t __sz) throw (std::bad_alloc) |
void | _S_memory_put (void *__vptr) throw () |
void | _S_refill_pool () throw (std::bad_alloc) |
pointer | _S_allocate_single_object () |
void | _S_deallocate_single_object (pointer __p) throw () |
Static Private Attributes | |
const unsigned int | _Bits_Per_Byte = 8 |
const unsigned int | _Bits_Per_Block = sizeof(unsigned int) * _Bits_Per_Byte |
_BPVector | _S_mem_blocks |
unsigned int | _S_block_size = bitmap_allocator<_Tp>::_Bits_Per_Block |
__gnu_cxx::__aux_balloc::_Bit_map_counter< pointer, _BPVec_allocator_type > | _S_last_request |
_BPVector::size_type | _S_last_dealloc_index = 0 |
|
Definition at line 530 of file bitmap_allocator.h. |
|
Definition at line 531 of file bitmap_allocator.h. |
|
Definition at line 532 of file bitmap_allocator.h. |
|
Definition at line 497 of file bitmap_allocator.h. |
|
Definition at line 499 of file bitmap_allocator.h. |
|
Definition at line 495 of file bitmap_allocator.h. |
|
Definition at line 496 of file bitmap_allocator.h. |
|
Definition at line 498 of file bitmap_allocator.h. |
|
Definition at line 494 of file bitmap_allocator.h. Referenced by __gnu_cxx::bitmap_allocator< _Tp >::max_size(). |
|
Definition at line 500 of file bitmap_allocator.h. Referenced by __gnu_cxx::bitmap_allocator< _Tp >::construct(). |
|
Definition at line 765 of file bitmap_allocator.h. |
|
Definition at line 768 of file bitmap_allocator.h. |
|
Definition at line 770 of file bitmap_allocator.h. |
|
Definition at line 773 of file bitmap_allocator.h. |
|
|
Definition at line 507 of file bitmap_allocator.h. Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_S_allocate_single_object(). |
|
Definition at line 514 of file bitmap_allocator.h. Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_S_deallocate_single_object(). |
|
|
Definition at line 520 of file bitmap_allocator.h. References operator new(). Referenced by __gnu_cxx::bitmap_allocator< _Tp >::allocate(). |
|
Definition at line 525 of file bitmap_allocator.h. References operator delete(). Referenced by __gnu_cxx::bitmap_allocator< _Tp >::deallocate(). |
|
Definition at line 555 of file bitmap_allocator.h. References __gnu_cxx::__aux_balloc::_Inclusive_between< _Tp >::_Block_pair, __gnu_cxx::bitmap_allocator< _Tp >::_S_block_size, __gnu_cxx::bitmap_allocator< _Tp >::_S_mem_blocks, and std::make_pair(). Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_S_allocate_single_object(). |
|
Definition at line 808 of file bitmap_allocator.h. |
|
Definition at line 807 of file bitmap_allocator.h. |
|
Definition at line 794 of file bitmap_allocator.h. References __gnu_cxx::bitmap_allocator< _Tp >::allocate(). |
|
Definition at line 779 of file bitmap_allocator.h. References __gnu_cxx::bitmap_allocator< _Tp >::_S_allocate_single_object(), and __gnu_cxx::bitmap_allocator< _Tp >::_S_memory_get(). Referenced by __gnu_cxx::bitmap_allocator< _Tp >::allocate(). |
|
Definition at line 812 of file bitmap_allocator.h. References __gnu_cxx::bitmap_allocator< _Tp >::value_type. |
|
Definition at line 799 of file bitmap_allocator.h. References __gnu_cxx::bitmap_allocator< _Tp >::_S_deallocate_single_object(), and __gnu_cxx::bitmap_allocator< _Tp >::_S_memory_put(). |
|
Definition at line 817 of file bitmap_allocator.h. |
|
Definition at line 810 of file bitmap_allocator.h. References __gnu_cxx::bitmap_allocator< _Tp >::size_type. |
|
Definition at line 505 of file bitmap_allocator.h. |
|
Definition at line 504 of file bitmap_allocator.h. |
|
Definition at line 826 of file bitmap_allocator.h. Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_S_deallocate_single_object(), and __gnu_cxx::bitmap_allocator< _Tp >::_S_refill_pool(). |
|
Definition at line 830 of file bitmap_allocator.h. Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_S_deallocate_single_object(). |
|
Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_S_allocate_single_object(), and __gnu_cxx::bitmap_allocator< _Tp >::_S_deallocate_single_object(). |
|
Definition at line 823 of file bitmap_allocator.h. Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_S_allocate_single_object(), __gnu_cxx::bitmap_allocator< _Tp >::_S_deallocate_single_object(), and __gnu_cxx::bitmap_allocator< _Tp >::_S_refill_pool(). |