per_thread_allocator< _Tp > Class Template Reference

#include <_pthread_alloc.h>

List of all members.

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

 per_thread_allocator () _STLP_NOTHROW
 per_thread_allocator (const per_thread_allocator< _Tp > &__a) _STLP_NOTHROW
 ~per_thread_allocator () _STLP_NOTHROW
pointer address (reference __x) const
const_pointer address (const_reference __x) const
_Tp * allocate (size_type __n, const void *=0)
void deallocate (pointer __p, size_type __n)
size_type max_size () const _STLP_NOTHROW
void construct (pointer __p, const _Tp &__val)
void destroy (pointer _p)
_Tp * allocate (size_type __n, size_type &__allocated_n)

Public Attributes

__state_type * _M_state


Detailed Description

template<class _Tp>
class per_thread_allocator< _Tp >

Definition at line 284 of file _pthread_alloc.h.


Member Typedef Documentation

template<class _Tp>
typedef size_t per_thread_allocator< _Tp >::size_type

Definition at line 288 of file _pthread_alloc.h.

template<class _Tp>
typedef ptrdiff_t per_thread_allocator< _Tp >::difference_type

Definition at line 289 of file _pthread_alloc.h.

template<class _Tp>
typedef _Tp* per_thread_allocator< _Tp >::pointer

Definition at line 290 of file _pthread_alloc.h.

template<class _Tp>
typedef const _Tp* per_thread_allocator< _Tp >::const_pointer

Definition at line 291 of file _pthread_alloc.h.

template<class _Tp>
typedef _Tp& per_thread_allocator< _Tp >::reference

Definition at line 292 of file _pthread_alloc.h.

template<class _Tp>
typedef const _Tp& per_thread_allocator< _Tp >::const_reference

Definition at line 293 of file _pthread_alloc.h.

template<class _Tp>
typedef _Tp per_thread_allocator< _Tp >::value_type

Definition at line 294 of file _pthread_alloc.h.


Constructor & Destructor Documentation

template<class _Tp>
per_thread_allocator< _Tp >::per_thread_allocator (  )  [inline]

Definition at line 302 of file _pthread_alloc.h.

References per_thread_allocator< _Tp >::_M_state.

template<class _Tp>
per_thread_allocator< _Tp >::per_thread_allocator ( const per_thread_allocator< _Tp > &  __a  )  [inline]

Definition at line 305 of file _pthread_alloc.h.

template<class _Tp>
per_thread_allocator< _Tp >::~per_thread_allocator (  )  [inline]

Definition at line 312 of file _pthread_alloc.h.


Member Function Documentation

template<class _Tp>
pointer per_thread_allocator< _Tp >::address ( reference  __x  )  const [inline]

Definition at line 314 of file _pthread_alloc.h.

template<class _Tp>
const_pointer per_thread_allocator< _Tp >::address ( const_reference  __x  )  const [inline]

Definition at line 315 of file _pthread_alloc.h.

template<class _Tp>
_Tp* per_thread_allocator< _Tp >::allocate ( size_type  __n,
const void *  = 0 
) [inline]

template<class _Tp>
void per_thread_allocator< _Tp >::deallocate ( pointer  __p,
size_type  __n 
) [inline]

template<class _Tp>
size_type per_thread_allocator< _Tp >::max_size (  )  const [inline]

Definition at line 347 of file _pthread_alloc.h.

Referenced by per_thread_allocator< _Tp >::allocate().

template<class _Tp>
void per_thread_allocator< _Tp >::construct ( pointer  __p,
const _Tp &  __val 
) [inline]

Definition at line 350 of file _pthread_alloc.h.

References _STLP_PLACEMENT_NEW.

template<class _Tp>
void per_thread_allocator< _Tp >::destroy ( pointer  _p  )  [inline]

Definition at line 351 of file _pthread_alloc.h.

template<class _Tp>
_Tp* per_thread_allocator< _Tp >::allocate ( size_type  __n,
size_type __allocated_n 
) [inline]


Member Data Documentation


The documentation for this class was generated from the following file:



Generated on Mon Mar 10 15:33:02 2008 by  doxygen 1.5.1