SourceForge.jp

クラス テンプレートdkutil::dkutil_allocator< T >

#include <allocator.h>

dkutil::dkutil_allocator< T >に対する継承グラフ

Inheritance graph
[凡例]
dkutil::dkutil_allocator< T >のコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Public メソッド

pointer address (reference x) const
const_pointer address (const_reference x) const
pointer allocate (size_type n, const void *hint=0)
void deallocate (pointer p, size_type n=0)
size_type max_size () const
void construct (pointer p, const T &val)
void destroy (pointer p)
template<class _Tp1, class _Tp2> dkutil_allocator< _Tp2 > & __stl_alloc_rebind (dkutil_allocator< _Tp1 > &__a, const _Tp2 *)
 私の環境ではSTLPort4.5.3ではこれが必要です。

template<class _Tp1, class _Tp2> dkutil_allocator< _Tp2 > __stl_alloc_create (const dkutil_allocator< _Tp1 > &, const _Tp2 *)
 STLPortではこれも必要だと思います。.


説明

template<class T>
class dkutil::dkutil_allocator< T >

後々、機能強化が図られる予定です。 (例えば、メモリリークチェック機能とか。
まぁ、メモリリークチェックはしょぼいが、 MemoryLeakCheckAllocator() (STLに対応していない)がある。 (あまりお勧めできないなぁ)、


関数

template<class T>
template<class _Tp1, class _Tp2>
dkutil_allocator<_Tp2> dkutil::dkutil_allocator< T >::__stl_alloc_create const dkutil_allocator< _Tp1 > &  ,
const _Tp2 * 
[inline]
 

STLPortではこれも必要だと思います。.

template<class T>
template<class _Tp1, class _Tp2>
dkutil_allocator<_Tp2>& dkutil::dkutil_allocator< T >::__stl_alloc_rebind dkutil_allocator< _Tp1 > &  __a,
const _Tp2 * 
[inline]
 

私の環境ではSTLPort4.5.3ではこれが必要です。

template<class T>
const_pointer dkutil::dkutil_allocator< T >::address const_reference  x  )  const [inline]
 

template<class T>
pointer dkutil::dkutil_allocator< T >::address reference  x  )  const [inline]
 

template<class T>
pointer dkutil::dkutil_allocator< T >::allocate size_type  n,
const void *  hint = 0
[inline]
 

template<class T>
void dkutil::dkutil_allocator< T >::construct pointer  p,
const T &  val
[inline]
 

template<class T>
void dkutil::dkutil_allocator< T >::deallocate pointer  p,
size_type  n = 0
[inline]
 

template<class T>
void dkutil::dkutil_allocator< T >::destroy pointer  p  )  [inline]
 

template<class T>
size_type dkutil::dkutil_allocator< T >::max_size  )  const [inline]
 


このクラスの説明は次のファイルから生成されました:
dkutil 1.02リリース前 d金魚専用マニュアルバージョンに対してSun Dec 28 21:23:12 2003に生成されました。 doxygen 1.3.5