Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::__default_alloc_template Class Template Reference

#include <stl_alloc.h>

Collaboration diagram for std::__default_alloc_template:

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 []
char* _S_start_free
char* _S_end_free
size_t _S_heap_size

Friends

class  _Lock

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


Member Enumeration Documentation

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

Enumeration values:
_ALIGN  

Definition at line 247 of file stl_alloc.h.

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

Enumeration values:
_MAX_BYTES  

Definition at line 248 of file stl_alloc.h.

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

Enumeration values:
_NFREELISTS  

Definition at line 249 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]
 

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 261 of file stl_alloc.h.

template<bool threads, int inst>
void* std::__default_alloc_template<threads, inst>::_S_refill ( size_t __n ) [static, private]
 

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 251 of file stl_alloc.h.

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

Definition at line 294 of file stl_alloc.h.

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

Definition at line 324 of file stl_alloc.h.

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


Friends And Related Function Documentation

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

Definition at line 284 of file stl_alloc.h.


Member Data Documentation

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

Definition at line 273 of file stl_alloc.h.

template<bool threads, int inst>
_Obj* __STL_VOLATILE std::__default_alloc_template<threads, inst>::_S_free_list[] [static, private]
 

Definition at line 259 of file stl_alloc.h.

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

Definition at line 274 of file stl_alloc.h.

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

Definition at line 272 of file stl_alloc.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:29:42 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001