クラス テンプレート Onikiri::pool_allocator< T >

#include <pool_allocator.h>

すべてのメンバ一覧

Public 型

typedef const value_typeconst_pointer
typedef const value_typeconst_reference
typedef ptrdiff_t difference_type
typedef value_typepointer
typedef value_typereference
typedef size_t size_type
typedef T value_type

Public メソッド

const_pointer address (const_reference value) const
pointer address (reference value) const
INLINE pointer allocate (size_type count, const void *hint=0)
INLINE void construct (pointer ptr, const T &value)
INLINE void deallocate (pointer ptr, size_type count)
INLINE void destroy (pointer ptr)
size_type max_size () const
template<class U>
 pool_allocator (const pool_allocator< U > &)
 pool_allocator (const pool_allocator &)
 pool_allocator ()
 ~pool_allocator ()

構成

struct  rebind


説明

template<typename T>
class Onikiri::pool_allocator< T >

pool_allocator.h201 行で定義されています。


型定義

template<typename T>
typedef const value_type* Onikiri::pool_allocator< T >::const_pointer

pool_allocator.h215 行で定義されています。

template<typename T>
typedef const value_type& Onikiri::pool_allocator< T >::const_reference

pool_allocator.h216 行で定義されています。

template<typename T>
typedef ptrdiff_t Onikiri::pool_allocator< T >::difference_type

pool_allocator.h218 行で定義されています。

template<typename T>
typedef value_type* Onikiri::pool_allocator< T >::pointer

pool_allocator.h213 行で定義されています。

template<typename T>
typedef value_type& Onikiri::pool_allocator< T >::reference

pool_allocator.h214 行で定義されています。

template<typename T>
typedef size_t Onikiri::pool_allocator< T >::size_type

pool_allocator.h217 行で定義されています。

template<typename T>
typedef T Onikiri::pool_allocator< T >::value_type

pool_allocator.h212 行で定義されています。


コンストラクタとデストラクタ

template<typename T>
Onikiri::pool_allocator< T >::pool_allocator (  )  [inline]

pool_allocator.h226 行で定義されています。

00227         {
00228         }

template<typename T>
Onikiri::pool_allocator< T >::pool_allocator ( const pool_allocator< T > &   )  [inline]

pool_allocator.h230 行で定義されています。

00231         {
00232         }

template<typename T>
template<class U>
Onikiri::pool_allocator< T >::pool_allocator ( const pool_allocator< U > &   )  [inline]

pool_allocator.h235 行で定義されています。

00236         {
00237         }

template<typename T>
Onikiri::pool_allocator< T >::~pool_allocator (  )  [inline]

pool_allocator.h239 行で定義されています。

00240         {
00241         }


関数

template<typename T>
const_pointer Onikiri::pool_allocator< T >::address ( const_reference  value  )  const [inline]

pool_allocator.h271 行で定義されています。

00272         {
00273             return &value; 
00274         }

template<typename T>
pointer Onikiri::pool_allocator< T >::address ( reference  value  )  const [inline]

pool_allocator.h266 行で定義されています。

00267         {
00268             return &value; 
00269         }

template<typename T>
INLINE pointer Onikiri::pool_allocator< T >::allocate ( size_type  count,
const void *  hint = 0 
) [inline]

pool_allocator.h243 行で定義されています。

参照先 Onikiri::pool_body< T >::allocate().

00246         {
00247             return pool().allocate(count);
00248 
00249         }

関数の呼び出しグラフ:

template<typename T>
INLINE void Onikiri::pool_allocator< T >::construct ( pointer  ptr,
const T &  value 
) [inline]

pool_allocator.h251 行で定義されています。

00252         {
00253             new (ptr) T(value);
00254         }

template<typename T>
INLINE void Onikiri::pool_allocator< T >::deallocate ( pointer  ptr,
size_type  count 
) [inline]

pool_allocator.h256 行で定義されています。

参照先 Onikiri::pool_body< T >::deallocate().

00257         {
00258             return pool().deallocate(ptr, count);
00259         }

関数の呼び出しグラフ:

template<typename T>
INLINE void Onikiri::pool_allocator< T >::destroy ( pointer  ptr  )  [inline]

pool_allocator.h261 行で定義されています。

00262         {
00263             ptr->~T();
00264         }

template<typename T>
size_type Onikiri::pool_allocator< T >::max_size (  )  const [inline]

pool_allocator.h276 行で定義されています。

00277         {
00278             return std::numeric_limits<size_t>::max() / sizeof(T);
00279         }


このクラスの説明は次のファイルから生成されました:
Onikiri2に対してTue Jun 18 15:14:59 2013に生成されました。  doxygen 1.4.7