SourceForge.jp

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

#include <dkutilBuffer.h>

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

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

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

Public 型

typedef std::size_t size_type

Public メソッド

 offset_pusher (const T *buff, size_type size)
T * now () const
T * get () const
size_type size () const
 今使用しているTの数を返す

size_type capacity () const
 入れることのできるTの数を返す

int push_back (const T *item, size_type num)
 プッシュするだけ・・・

void reset (const T *buff, size_type size)

Protected メソッド

void SetOffset (size_type o)
size_type GetOffset ()
void OffsetPlus (size_type plus)

説明

template<class T>
class dkutil::offset_pusher< T >

なんてネーミングだ!英語が分からないからです・・・すみません。 vectorッぽい事が出来ます。


型定義

template<class T>
typedef std::size_t dkutil::offset_pusher< T >::size_type
 

dkutil::private_::serialize_offset_pusherで再定義されています。


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

template<class T>
dkutil::offset_pusher< T >::offset_pusher const T *  buff,
size_type  size
[inline]
 


関数

template<class T>
size_type dkutil::offset_pusher< T >::capacity  )  const [inline]
 

入れることのできるTの数を返す

template<class T>
T* dkutil::offset_pusher< T >::get  )  const [inline]
 

dkutil::private_::serialize_offset_pusherで再定義されています。

template<class T>
size_type dkutil::offset_pusher< T >::GetOffset  )  [inline, protected]
 

template<class T>
T* dkutil::offset_pusher< T >::now  )  const [inline]
 

dkutil::private_::serialize_offset_pusherで再定義されています。

template<class T>
void dkutil::offset_pusher< T >::OffsetPlus size_type  plus  )  [inline, protected]
 

template<class T>
int dkutil::offset_pusher< T >::push_back const T *  item,
size_type  num
[inline]
 

プッシュするだけ・・・

引数:
item[in] 入れるもの
num[in] itemの数
戻り値:
edk_SUCCEEDED==成功 othrer==不成功 DKUTIL_SUCCEEDED()系マクロで確かめられます。
例外:
最初からすでに入らないと分かりきっている場合はstd::out_of_rangeを投げます。 

template<class T>
void dkutil::offset_pusher< T >::reset const T *  buff,
size_type  size
[inline]
 

dkutil::private_::serialize_offset_pusherで再定義されています。

template<class T>
void dkutil::offset_pusher< T >::SetOffset size_type  o  )  [inline, protected]
 

template<class T>
size_type dkutil::offset_pusher< T >::size  )  const [inline]
 

今使用しているTの数を返す


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