Whole document tree
    

Whole document tree

Templatestd::__default_alloc_template class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::__default_alloc_template< threads, inst > Class Template Reference

#include <stl_alloc.h>

Collaboration diagram for std::__default_alloc_template< threads, inst >:

Collaboration graph
[legend]
List of all members.

Static Public Methods

void * allocate (size_t __n)
void deallocate (void *__p, size_t __n)
void * reallocate (void *__p, size_t __old_sz, size_t __new_sz)

Private Types

enum  { _ALIGN = 8 }
enum  { _MAX_BYTES = 128 }
enum  { _NFREELISTS = 16 }

Static Private Methods

size_t _S_round_up (size_t __bytes)
size_t _S_freelist_index (size_t __bytes)
void * _S_refill (size_t __n)
char * _S_chunk_alloc (size_t __size, int &__nobjs)

Static Private Attributes

_Obj *__STL_VOLATILE _S_free_list [] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }
char * _S_start_free = 0
char * _S_end_free = 0
size_t _S_heap_size = 0

Friends

class _Lock

template<bool threads, int inst>
class std::__default_alloc_template< threads, inst >


Member Enumeration Documentation

template<bool threads, int inst>
anonymous enum [private]
 

Enumeration values:
_ALIGN 

Definition at line 276 of file stl_alloc.h.

template<bool threads, int inst>
anonymous enum [private]
 

Enumeration values:
_MAX_BYTES 

Definition at line 277 of file stl_alloc.h.

template<bool threads, int inst>
anonymous enum [private]
 

Enumeration values:
_NFREELISTS 

Definition at line 278 of file stl_alloc.h.


Member Function Documentation

template<bool __threads, int __inst>
char * std::__default_alloc_template< __threads, __inst >::_S_chunk_alloc size_t    __size,
int &    __nobjs
[static, private]
 

Definition at line 402 of file stl_alloc.h.

References std::__default_alloc_template< threads, inst >::_ALIGN, std::__default_alloc_template< threads, inst >::_MAX_BYTES, std::__default_alloc_template< threads, inst >::_S_end_free, std::__default_alloc_template< threads, inst >::_S_free_list, std::__default_alloc_template< threads, inst >::_S_freelist_index(), std::__default_alloc_template< threads, inst >::_S_heap_size, std::__default_alloc_template< threads, inst >::_S_round_up(), std::__default_alloc_template< threads, inst >::_S_start_free, allocate(), and malloc().

Referenced by std::__default_alloc_template< threads, inst >::_S_refill().

template<bool threads, int inst>
size_t std::__default_alloc_template< threads, inst >::_S_freelist_index size_t    __bytes [inline, static, private]
 

Definition at line 290 of file stl_alloc.h.

References std::__default_alloc_template< threads, inst >::_ALIGN.

Referenced by std::__default_alloc_template< threads, inst >::_S_chunk_alloc(), std::__default_alloc_template< threads, inst >::_S_refill(), std::__default_alloc_template< threads, inst >::allocate(), and std::__default_alloc_template< threads, inst >::deallocate().

template<bool __threads, int __inst>
void * std::__default_alloc_template< __threads, __inst >::_S_refill size_t    __n [static, private]
 

Definition at line 470 of file stl_alloc.h.

References std::__default_alloc_template< threads, inst >::_S_chunk_alloc(), std::__default_alloc_template< threads, inst >::_S_free_list, and std::__default_alloc_template< threads, inst >::_S_freelist_index().

Referenced by std::__default_alloc_template< threads, inst >::allocate().

template<bool threads, int inst>
size_t std::__default_alloc_template< threads, inst >::_S_round_up size_t    __bytes [inline, static, private]
 

Definition at line 280 of file stl_alloc.h.

References std::__default_alloc_template< threads, inst >::_ALIGN.

Referenced by std::__default_alloc_template< threads, inst >::_S_chunk_alloc(), std::__default_alloc_template< threads, inst >::allocate(), and std::__default_alloc_template< threads, inst >::reallocate().

template<bool threads, int inst>
void* std::__default_alloc_template< threads, inst >::allocate size_t    __n [inline, static]
 

Definition at line 323 of file stl_alloc.h.

References std::__default_alloc_template< threads, inst >::_MAX_BYTES, std::__default_alloc_template< threads, inst >::_S_free_list, std::__default_alloc_template< threads, inst >::_S_freelist_index(), std::__default_alloc_template< threads, inst >::_S_refill(), std::__default_alloc_template< threads, inst >::_S_round_up(), and allocate().

Referenced by std::__default_alloc_template< threads, inst >::reallocate().

template<bool threads, int inst>
void std::__default_alloc_template< threads, inst >::deallocate void *    __p,
size_t    __n
[inline, static]
 

Definition at line 353 of file stl_alloc.h.

References std::__default_alloc_template< threads, inst >::_MAX_BYTES, std::__default_alloc_template< threads, inst >::_S_free_list, std::__default_alloc_template< threads, inst >::_S_freelist_index(), and deallocate().

Referenced by std::__default_alloc_template< threads, inst >::reallocate().

template<bool threads, int inst>
void * std::__default_alloc_template< threads, inst >::reallocate void *    __p,
size_t    __old_sz,
size_t    __new_sz
[static]
 

Definition at line 501 of file stl_alloc.h.

References std::__default_alloc_template< threads, inst >::_MAX_BYTES, std::__default_alloc_template< threads, inst >::_S_round_up(), std::__default_alloc_template< threads, inst >::allocate(), and std::__default_alloc_template< threads, inst >::deallocate().


Friends And Related Function Documentation

template<bool threads, int inst>
friend class _Lock [friend]
 

Definition at line 313 of file stl_alloc.h.


Member Data Documentation

template<bool threads, int inst>
char * std::__default_alloc_template< __threads, __inst >::_S_end_free = 0 [static, private]
 

Definition at line 531 of file stl_alloc.h.

Referenced by std::__default_alloc_template< threads, inst >::_S_chunk_alloc().

template<bool threads, int inst>
__default_alloc_template< __threads, __inst >::_Obj *__STL_VOLATILE std::__default_alloc_template< __threads, __inst >::_S_free_list = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } [static, private]
 

Definition at line 540 of file stl_alloc.h.

Referenced by std::__default_alloc_template< threads, inst >::_S_chunk_alloc(), std::__default_alloc_template< threads, inst >::_S_refill(), std::__default_alloc_template< threads, inst >::allocate(), and std::__default_alloc_template< threads, inst >::deallocate().

template<bool threads, int inst>
size_t std::__default_alloc_template< __threads, __inst >::_S_heap_size = 0 [static, private]
 

Definition at line 534 of file stl_alloc.h.

Referenced by std::__default_alloc_template< threads, inst >::_S_chunk_alloc().

template<bool threads, int inst>
char * std::__default_alloc_template< __threads, __inst >::_S_start_free = 0 [static, private]
 

Definition at line 528 of file stl_alloc.h.

Referenced by std::__default_alloc_template< threads, inst >::_S_chunk_alloc().


The documentation for this class was generated from the following file:
Generated on Mon Apr 8 03:16:50 2002 for libstdc++-v3 Source by doxygen1.2.15