クラス テンプレート RTC::SyncLIFO< DataType >

#include <SyncLIFO.h>

RTC::SyncLIFO< DataType >に対する継承グラフ

RTC::BufferBase< DataType >

すべてのメンバ一覧

Public メソッド

 SyncLIFO (int size=3)
virtual ~SyncLIFO ()
virtual void init (const DataType &data)
virtual void clear ()
virtual bool setBuffer (DataType *buffer, int size)
virtual DataType * unsetBuffer ()
virtual DataType * getBuffer () const
virtual long int length () const
 バッファの長さを取得する
virtual bool write (const DataType &data)
 バッファにデータを書き込む
virtual int writable ()
virtual void put (const DataType &data)
 バッファにデータを格納する
virtual int putn (DataType *data, int size)
virtual void putNext (const DataType &data)
virtual bool isFull () const
 バッファfullチェック
virtual void pbump (int n)
virtual void overflow (const DataType &data)
virtual bool read (DataType &data)
 バッファからデータを読み出す
virtual int readable () const
virtual const DataType & get ()
 バッファからデータを取得する
virtual void gbump (int n)
virtual DataType & getNext ()
virtual int getn (DataType *data, int size)
virtual bool isEmpty () const
 バッファemptyチェック
virtual void underflow ()

Protected メソッド

virtual DataType * wptr ()
virtual DataType * wnext ()
virtual DataType * wbegin ()
virtual DataType * wend ()
virtual DataType * rptr ()
virtual DataType * rnext ()
virtual DataType * rbegin ()
virtual DataType * rend ()

Protected 変数

DataType * m_buffer
int m_size
DataType * m_buffer_org
int m_size_org
int m_wpos
int m_wnext
int m_rpos
int m_rnext
int & m_wbegin
int & m_wend
int & m_rbegin
int & m_rend

template<class DataType>
class RTC::SyncLIFO< DataType >


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

template<class DataType>
RTC::SyncLIFO< DataType >::SyncLIFO ( int  size = 3  )  [inline]

template<class DataType>
virtual RTC::SyncLIFO< DataType >::~SyncLIFO (  )  [inline, virtual]


関数

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::init ( const DataType &  data  )  [inline, virtual]

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::clear (  )  [inline, virtual]

template<class DataType>
virtual bool RTC::SyncLIFO< DataType >::setBuffer ( DataType *  buffer,
int  size 
) [inline, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::unsetBuffer (  )  [inline, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::getBuffer (  )  const [inline, virtual]

template<class DataType>
virtual long int RTC::SyncLIFO< DataType >::length (  )  const [inline, virtual]

バッファの長さを取得する

バッファ長を取得するための純粋仮想関数

戻り値:
バッファ長

RTC::BufferBase< DataType >を実装しています。

template<class DataType>
virtual bool RTC::SyncLIFO< DataType >::write ( const DataType &  value  )  [inline, virtual]

バッファにデータを書き込む

バッファにデータを書き込むための純粋仮想関数

引数:
value 書き込み対象データ
戻り値:
データ書き込み結果(true:書き込み成功,false:書き込み失敗)

RTC::BufferBase< DataType >を実装しています。

template<class DataType>
virtual int RTC::SyncLIFO< DataType >::writable (  )  [inline, virtual]

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::put ( const DataType &  data  )  [inline, virtual]

バッファにデータを格納する

バッファへのデータ格納用純粋仮想関数

引数:
data 対象データ

RTC::BufferBase< DataType >を実装しています。

template<class DataType>
virtual int RTC::SyncLIFO< DataType >::putn ( DataType *  data,
int  size 
) [inline, virtual]

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::putNext ( const DataType &  data  )  [inline, virtual]

template<class DataType>
virtual bool RTC::SyncLIFO< DataType >::isFull (  )  const [inline, virtual]

バッファfullチェック

バッファfullチェック用純粋仮想関数

戻り値:
fullチェック結果(true:バッファfull,false:バッファ空きあり)

RTC::BufferBase< DataType >を実装しています。

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::pbump ( int  n  )  [inline, virtual]

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::overflow ( const DataType &  data  )  [inline, virtual]

template<class DataType>
virtual bool RTC::SyncLIFO< DataType >::read ( DataType &  value  )  [inline, virtual]

バッファからデータを読み出す

バッファからデータを読み出すための純粋仮想関数

引数:
value 読み出しデータ
戻り値:
データ読み出し結果(true:読み出し成功,false:読み出し失敗)

RTC::BufferBase< DataType >を実装しています。

template<class DataType>
virtual int RTC::SyncLIFO< DataType >::readable (  )  const [inline, virtual]

template<class DataType>
virtual const DataType& RTC::SyncLIFO< DataType >::get (  )  [inline, virtual]

バッファからデータを取得する

バッファに格納されたデータ取得用純粋仮想関数

戻り値:
取得データ

RTC::BufferBase< DataType >を実装しています。

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::gbump ( int  n  )  [inline, virtual]

template<class DataType>
virtual DataType& RTC::SyncLIFO< DataType >::getNext (  )  [inline, virtual]

template<class DataType>
virtual int RTC::SyncLIFO< DataType >::getn ( DataType *  data,
int  size 
) [inline, virtual]

template<class DataType>
virtual bool RTC::SyncLIFO< DataType >::isEmpty (  )  const [inline, virtual]

バッファemptyチェック

バッファemptyチェック用純粋仮想関数

戻り値:
emptyチェック結果(true:バッファempty,false:バッファデータあり)

RTC::BufferBase< DataType >を実装しています。

template<class DataType>
virtual void RTC::SyncLIFO< DataType >::underflow (  )  [inline, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::wptr (  )  [inline, protected, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::wnext (  )  [inline, protected, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::wbegin (  )  [inline, protected, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::wend (  )  [inline, protected, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::rptr (  )  [inline, protected, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::rnext (  )  [inline, protected, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::rbegin (  )  [inline, protected, virtual]

template<class DataType>
virtual DataType* RTC::SyncLIFO< DataType >::rend (  )  [inline, protected, virtual]


変数

template<class DataType>
DataType* RTC::SyncLIFO< DataType >::m_buffer [protected]

template<class DataType>
int RTC::SyncLIFO< DataType >::m_size [protected]

template<class DataType>
DataType* RTC::SyncLIFO< DataType >::m_buffer_org [protected]

template<class DataType>
int RTC::SyncLIFO< DataType >::m_size_org [protected]

template<class DataType>
int RTC::SyncLIFO< DataType >::m_wpos [protected]

template<class DataType>
int RTC::SyncLIFO< DataType >::m_wnext [protected]

template<class DataType>
int RTC::SyncLIFO< DataType >::m_rpos [protected]

template<class DataType>
int RTC::SyncLIFO< DataType >::m_rnext [protected]

template<class DataType>
int& RTC::SyncLIFO< DataType >::m_wbegin [protected]

template<class DataType>
int & RTC::SyncLIFO< DataType >::m_wend [protected]

template<class DataType>
int& RTC::SyncLIFO< DataType >::m_rbegin [protected]

template<class DataType>
int & RTC::SyncLIFO< DataType >::m_rend [protected]


OpenRTMに対してWed May 21 05:17:25 2008に生成されました。  doxygen 1.5.3