SourceForge.jp

クラス テンプレートdkutil::array_onebyone< T, EXTEND_ARRAY, A >

元祖array_onebyone [詳細]

#include <array_onebyone_mingw.hpp>

dkutil::array_onebyone< T, EXTEND_ARRAY, A >のコラボレーション図

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

Public 型

typedef A allocator_type
typedef A::size_type size_type
typedef A::difference_type difference_type
typedef A::reference reference
typedef A::const_reference const_reference
typedef A::value_type value_type
typedef std::deque< unsigned
int, A > 
DEQUE_TYPE
typedef unsigned int handle
typedef A allocator_type
typedef A::size_type size_type
typedef A::difference_type difference_type
typedef A::reference reference
typedef A::const_reference const_reference
typedef A::value_type value_type
typedef std::deque< unsigned
int, A > 
DEQUE_TYPE
typedef unsigned int handle

Public メソッド

 array_onebyone ()
 array_onebyone (const array_onebyone< T, EXTEND_ARRAY, A > &a)
bool empty_free_queue ()
void resize (size_type n)
size_type size () const
size_type max_size () const
bool empty () const
get_allocator () const
reference at (size_type pos)
const_reference at (size_type pos) const
reference operator[] (size_type pos)
const_reference operator[] (size_type pos) const
handle push (const T &x)
void pop (handle item)
void clear ()
virtual ~array_onebyone ()
 array_onebyone ()
 array_onebyone (const array_onebyone< T, EXTEND_ARRAY, A > &a)
bool empty_free_queue ()
void resize (size_type n)
size_type size () const
size_type max_size () const
bool empty () const
get_allocator () const
reference at (size_type pos)
const_reference at (size_type pos) const
reference operator[] (size_type pos)
const_reference operator[] (size_type pos) const
handle push (const T &x)
void pop (handle item)
void clear ()
virtual ~array_onebyone ()

Protected 型

enum  { enuExtendArray = EXTEND_ARRAY }
enum  { enuExtendArray = EXTEND_ARRAY }

Protected メソッド

int Init (size_t memory_count)
 配列を初期化する。

int Reallocate ()
 配列をEXNTEND_ARRAY分 拡張する。縮小は出来ないのでclear()ですべてを開放すること

int Init (size_t memory_count)
 配列を初期化する。

int Reallocate ()
 配列をEXNTEND_ARRAY分 拡張する。縮小は出来ないのでclear()ですべてを開放すること


Protected 変数

allocator
T * m
unsigned int maxcount
unsigned int nowmp
bool mflag
DEQUE_TYPE mp
T * m

説明

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
class dkutil::array_onebyone< T, EXTEND_ARRAY, A >

元祖array_onebyone

引数:
T 対象
EXTEND_ARRAY 再確保する時のサイズ
A allocator


型定義

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A dkutil::array_onebyone< T, EXTEND_ARRAY, A >::allocator_type
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A dkutil::array_onebyone< T, EXTEND_ARRAY, A >::allocator_type
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::const_reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::const_reference
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::const_reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::const_reference
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef std::deque<unsigned int,A> dkutil::array_onebyone< T, EXTEND_ARRAY, A >::DEQUE_TYPE
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef std::deque<unsigned int,A> dkutil::array_onebyone< T, EXTEND_ARRAY, A >::DEQUE_TYPE
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::difference_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::difference_type
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::difference_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::difference_type
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef unsigned int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::handle
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef unsigned int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::handle
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::reference
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::reference
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::size_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::size_type
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::size_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::size_type
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::value_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::value_type
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
typedef A::value_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::value_type
 


列挙型

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
anonymous enum [protected]
 

列挙型の値:
enuExtendArray 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
anonymous enum [protected]
 

列挙型の値:
enuExtendArray 


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

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
dkutil::array_onebyone< T, EXTEND_ARRAY, A >::array_onebyone  )  [inline, explicit]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
dkutil::array_onebyone< T, EXTEND_ARRAY, A >::array_onebyone const array_onebyone< T, EXTEND_ARRAY, A > &  a  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
virtual dkutil::array_onebyone< T, EXTEND_ARRAY, A >::~array_onebyone  )  [inline, virtual]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
dkutil::array_onebyone< T, EXTEND_ARRAY, A >::array_onebyone  )  [inline, explicit]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
dkutil::array_onebyone< T, EXTEND_ARRAY, A >::array_onebyone const array_onebyone< T, EXTEND_ARRAY, A > &  a  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
virtual dkutil::array_onebyone< T, EXTEND_ARRAY, A >::~array_onebyone  )  [inline, virtual]
 


関数

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
const_reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::at size_type  pos  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::at size_type  pos  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
const_reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::at size_type  pos  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::at size_type  pos  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
void dkutil::array_onebyone< T, EXTEND_ARRAY, A >::clear  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
void dkutil::array_onebyone< T, EXTEND_ARRAY, A >::clear  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
bool dkutil::array_onebyone< T, EXTEND_ARRAY, A >::empty  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
bool dkutil::array_onebyone< T, EXTEND_ARRAY, A >::empty  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
bool dkutil::array_onebyone< T, EXTEND_ARRAY, A >::empty_free_queue  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
bool dkutil::array_onebyone< T, EXTEND_ARRAY, A >::empty_free_queue  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
A dkutil::array_onebyone< T, EXTEND_ARRAY, A >::get_allocator  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
A dkutil::array_onebyone< T, EXTEND_ARRAY, A >::get_allocator  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::Init size_t  memory_count  )  [inline, protected]
 

配列を初期化する。

引数:
memory_count[in] 事前に確保するT型の変数の数

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::Init size_t  memory_count  )  [inline, protected]
 

配列を初期化する。

引数:
memory_count[in] 事前に確保するT型の変数の数

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
size_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::max_size  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
size_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::max_size  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
const_reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::operator[] size_type  pos  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::operator[] size_type  pos  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
const_reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::operator[] size_type  pos  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
reference dkutil::array_onebyone< T, EXTEND_ARRAY, A >::operator[] size_type  pos  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
void dkutil::array_onebyone< T, EXTEND_ARRAY, A >::pop handle  item  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
void dkutil::array_onebyone< T, EXTEND_ARRAY, A >::pop handle  item  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
handle dkutil::array_onebyone< T, EXTEND_ARRAY, A >::push const T &  x  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
handle dkutil::array_onebyone< T, EXTEND_ARRAY, A >::push const T &  x  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::Reallocate  )  [inline, protected]
 

配列をEXNTEND_ARRAY分 拡張する。縮小は出来ないのでclear()ですべてを開放すること

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::Reallocate  )  [inline, protected]
 

配列をEXNTEND_ARRAY分 拡張する。縮小は出来ないのでclear()ですべてを開放すること

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
void dkutil::array_onebyone< T, EXTEND_ARRAY, A >::resize size_type  n  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
void dkutil::array_onebyone< T, EXTEND_ARRAY, A >::resize size_type  n  )  [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
size_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::size  )  const [inline]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
size_type dkutil::array_onebyone< T, EXTEND_ARRAY, A >::size  )  const [inline]
 


変数

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
A dkutil::array_onebyone< T, EXTEND_ARRAY, A >::allocator [protected]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
T* dkutil::array_onebyone< T, EXTEND_ARRAY, A >::m [protected]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
T* dkutil::array_onebyone< T, EXTEND_ARRAY, A >::m [protected]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
unsigned int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::maxcount [protected]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
bool dkutil::array_onebyone< T, EXTEND_ARRAY, A >::mflag [protected]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
DEQUE_TYPE dkutil::array_onebyone< T, EXTEND_ARRAY, A >::mp [protected]
 

template<class T, unsigned int EXTEND_ARRAY = enuDefaultExpandSize, typename A = std::allocator<T>>
unsigned int dkutil::array_onebyone< T, EXTEND_ARRAY, A >::nowmp [protected]
 


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