Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Public Types | Public Member Functions | Data Fields
UserAlloc< T, Types > Struct Template Reference

#include <rw_allocator.h>

Collaboration diagram for UserAlloc< T, Types >:
Collaboration graph
[legend]

Data Structures

struct  rebind
 

Public Types

typedef T value_type
 
typedef Types::size_type size_type
 
typedef Types::difference_type difference_type
 
typedef Types::pointer pointer
 
typedef Types::const_pointer const_pointer
 
typedef Types::reference reference
 
typedef Types::const_reference const_reference
 

Public Member Functions

 UserAlloc (SharedAlloc *pal=0) _THROWS(())
 
 UserAlloc (const UserAlloc &rhs) _THROWS(())
 
template<class U >
 UserAlloc (const UserAlloc< U > &rhs) _THROWS(())
 
template<class U >
void operator= (const UserAlloc< U > &rhs)
 
void operator= (const UserAlloc &rhs)
 
 ~UserAlloc ()
 
pointer allocate (size_type nelems, const void *hint=0)
 
void deallocate (pointer ptr, size_type nelems)
 
void construct (pointer ptr, const_reference val)
 
void destroy (pointer ptr)
 
pointer address (reference ref) const
 
const_pointer address (const_reference ref) const
 
size_type max_size () const _THROWS(())
 
bool operator== (const UserAlloc &rhs) const
 
bool operator!= (const UserAlloc &rhs) const
 

Data Fields

SharedAlloc * pal_
 

Detailed Description

template<class T, class Types = AllocTypes<T>>
struct UserAlloc< T, Types >

Definition at line 148 of file rw_allocator.h.

Member Typedef Documentation

◆ const_pointer

template<class T , class Types = AllocTypes<T>>
typedef Types::const_pointer UserAlloc< T, Types >::const_pointer

Definition at line 158 of file rw_allocator.h.

◆ const_reference

template<class T , class Types = AllocTypes<T>>
typedef Types::const_reference UserAlloc< T, Types >::const_reference

Definition at line 160 of file rw_allocator.h.

◆ difference_type

template<class T , class Types = AllocTypes<T>>
typedef Types::difference_type UserAlloc< T, Types >::difference_type

Definition at line 156 of file rw_allocator.h.

◆ pointer

template<class T , class Types = AllocTypes<T>>
typedef Types::pointer UserAlloc< T, Types >::pointer

Definition at line 157 of file rw_allocator.h.

◆ reference

template<class T , class Types = AllocTypes<T>>
typedef Types::reference UserAlloc< T, Types >::reference

Definition at line 159 of file rw_allocator.h.

◆ size_type

template<class T , class Types = AllocTypes<T>>
typedef Types::size_type UserAlloc< T, Types >::size_type

Definition at line 155 of file rw_allocator.h.

◆ value_type

template<class T , class Types = AllocTypes<T>>
typedef T UserAlloc< T, Types >::value_type

Definition at line 154 of file rw_allocator.h.

Constructor & Destructor Documentation

◆ UserAlloc() [1/3]

template<class T , class Types = AllocTypes<T>>
UserAlloc< T, Types >::UserAlloc ( SharedAlloc *  pal = 0)
inline

Definition at line 162 of file rw_allocator.h.

◆ UserAlloc() [2/3]

template<class T , class Types = AllocTypes<T>>
UserAlloc< T, Types >::UserAlloc ( const UserAlloc< T, Types > &  rhs)
inline

Definition at line 168 of file rw_allocator.h.

◆ UserAlloc() [3/3]

template<class T , class Types = AllocTypes<T>>
template<class U >
UserAlloc< T, Types >::UserAlloc ( const UserAlloc< U > &  rhs)
inline

Definition at line 175 of file rw_allocator.h.

◆ ~UserAlloc()

template<class T , class Types = AllocTypes<T>>
UserAlloc< T, Types >::~UserAlloc ( )
inline

Definition at line 195 of file rw_allocator.h.

Member Function Documentation

◆ address() [1/2]

template<class T , class Types = AllocTypes<T>>
const_pointer UserAlloc< T, Types >::address ( const_reference  ref) const
inline

Definition at line 223 of file rw_allocator.h.

◆ address() [2/2]

template<class T , class Types = AllocTypes<T>>
pointer UserAlloc< T, Types >::address ( reference  ref) const
inline

Definition at line 218 of file rw_allocator.h.

◆ allocate()

template<class T , class Types = AllocTypes<T>>
pointer UserAlloc< T, Types >::allocate ( size_type  nelems,
const void *  hint = 0 
)
inline

Definition at line 199 of file rw_allocator.h.

◆ construct()

template<class T , class Types = AllocTypes<T>>
void UserAlloc< T, Types >::construct ( pointer  ptr,
const_reference  val 
)
inline

Definition at line 208 of file rw_allocator.h.

◆ deallocate()

template<class T , class Types = AllocTypes<T>>
void UserAlloc< T, Types >::deallocate ( pointer  ptr,
size_type  nelems 
)
inline

Definition at line 204 of file rw_allocator.h.

◆ destroy()

template<class T , class Types = AllocTypes<T>>
void UserAlloc< T, Types >::destroy ( pointer  ptr)
inline

Definition at line 213 of file rw_allocator.h.

◆ max_size()

template<class T , class Types = AllocTypes<T>>
size_type UserAlloc< T, Types >::max_size ( ) const
inline

Definition at line 228 of file rw_allocator.h.

◆ operator!=()

template<class T , class Types = AllocTypes<T>>
bool UserAlloc< T, Types >::operator!= ( const UserAlloc< T, Types > &  rhs) const
inline

Definition at line 236 of file rw_allocator.h.

◆ operator=() [1/2]

template<class T , class Types = AllocTypes<T>>
void UserAlloc< T, Types >::operator= ( const UserAlloc< T, Types > &  rhs)
inline

Definition at line 190 of file rw_allocator.h.

◆ operator=() [2/2]

template<class T , class Types = AllocTypes<T>>
template<class U >
void UserAlloc< T, Types >::operator= ( const UserAlloc< U > &  rhs)
inline

Definition at line 182 of file rw_allocator.h.

◆ operator==()

template<class T , class Types = AllocTypes<T>>
bool UserAlloc< T, Types >::operator== ( const UserAlloc< T, Types > &  rhs) const
inline

Definition at line 232 of file rw_allocator.h.

Field Documentation

◆ pal_

template<class T , class Types = AllocTypes<T>>
SharedAlloc* UserAlloc< T, Types >::pal_

Definition at line 151 of file rw_allocator.h.


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