pthread_allocator< _Tp > Class Template Reference

#include <_pthread_alloc.h>

Inheritance diagram for pthread_allocator< _Tp >:

__stlport_class< pthread_allocator< _Tp > > 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

 pthread_allocator () _STLP_NOTHROW
 pthread_allocator (const pthread_allocator< _Tp > &a) _STLP_NOTHROW
 ~pthread_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)

Detailed Description

template<class _Tp>
class pthread_allocator< _Tp >

Definition at line 97 of file _pthread_alloc.h.


Member Typedef Documentation

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

Definition at line 100 of file _pthread_alloc.h.

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

Definition at line 101 of file _pthread_alloc.h.

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

Definition at line 102 of file _pthread_alloc.h.

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

Definition at line 103 of file _pthread_alloc.h.

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

Definition at line 104 of file _pthread_alloc.h.

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

Definition at line 105 of file _pthread_alloc.h.

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

Definition at line 106 of file _pthread_alloc.h.


Constructor & Destructor Documentation

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

Definition at line 114 of file _pthread_alloc.h.

template<class _Tp>
pthread_allocator< _Tp >::pthread_allocator ( const pthread_allocator< _Tp > &  a  )  [inline]

Definition at line 115 of file _pthread_alloc.h.

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

Definition at line 122 of file _pthread_alloc.h.


Member Function Documentation

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

Definition at line 124 of file _pthread_alloc.h.

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

Definition at line 125 of file _pthread_alloc.h.

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

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

Definition at line 147 of file _pthread_alloc.h.

References _STLP_ASSERT, and _STLP_SHRED_BYTE.

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

Definition at line 157 of file _pthread_alloc.h.

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

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

Definition at line 160 of file _pthread_alloc.h.

References _STLP_PLACEMENT_NEW.

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

Definition at line 161 of file _pthread_alloc.h.

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


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