#include <SyncLIFO.h>
Public Member Functions | |
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 |
Get the buffer length. | |
virtual bool | write (const DataType &data) |
Write data into the buffer. | |
virtual int | writable () |
virtual void | put (const DataType &data) |
Store data into the buffer. | |
virtual int | putn (DataType *data, int size) |
virtual void | putNext (const DataType &data) |
virtual bool | isFull () const |
Check on whether the buffer is full. | |
virtual void | pbump (int n) |
virtual void | overflow (const DataType &data) |
virtual bool | read (DataType &data) |
Read data from the buffer. | |
virtual int | readable () const |
virtual const DataType & | get () |
Get data from the buffer. | |
virtual void | gbump (int n) |
virtual DataType & | getNext () |
virtual int | getn (DataType *data, int size) |
virtual bool | isEmpty () const |
Check on whether the buffer is empty. | |
virtual void | underflow () |
Protected Member Functions | |
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 Attributes | |
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 |
RTC::SyncLIFO< DataType >::SyncLIFO | ( | int | size = 3 |
) | [inline] |
virtual RTC::SyncLIFO< DataType >::~SyncLIFO | ( | ) | [inline, virtual] |
virtual void RTC::SyncLIFO< DataType >::init | ( | const DataType & | data | ) | [inline, virtual] |
virtual void RTC::SyncLIFO< DataType >::clear | ( | ) | [inline, virtual] |
virtual bool RTC::SyncLIFO< DataType >::setBuffer | ( | DataType * | buffer, | |
int | size | |||
) | [inline, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::unsetBuffer | ( | ) | [inline, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::getBuffer | ( | ) | const [inline, virtual] |
virtual long int RTC::SyncLIFO< DataType >::length | ( | ) | const [inline, virtual] |
Get the buffer length.
Pure virtual function to get the buffer length.
Implements RTC::BufferBase< DataType >.
virtual bool RTC::SyncLIFO< DataType >::write | ( | const DataType & | value | ) | [inline, virtual] |
Write data into the buffer.
Pure virtual function to write data into the buffer.
value | Target data to write. |
Implements RTC::BufferBase< DataType >.
virtual int RTC::SyncLIFO< DataType >::writable | ( | ) | [inline, virtual] |
virtual void RTC::SyncLIFO< DataType >::put | ( | const DataType & | data | ) | [inline, virtual] |
Store data into the buffer.
Pure virtual function to store data into the buffer.
data | Target data |
Implements RTC::BufferBase< DataType >.
virtual int RTC::SyncLIFO< DataType >::putn | ( | DataType * | data, | |
int | size | |||
) | [inline, virtual] |
virtual void RTC::SyncLIFO< DataType >::putNext | ( | const DataType & | data | ) | [inline, virtual] |
virtual bool RTC::SyncLIFO< DataType >::isFull | ( | ) | const [inline, virtual] |
Check on whether the buffer is full.
Pure virtual function to check on whether the buffer is full.
Implements RTC::BufferBase< DataType >.
virtual void RTC::SyncLIFO< DataType >::pbump | ( | int | n | ) | [inline, virtual] |
virtual void RTC::SyncLIFO< DataType >::overflow | ( | const DataType & | data | ) | [inline, virtual] |
virtual bool RTC::SyncLIFO< DataType >::read | ( | DataType & | value | ) | [inline, virtual] |
Read data from the buffer.
Pure virtual function to read data from the buffer.
value | Read data. |
Implements RTC::BufferBase< DataType >.
virtual int RTC::SyncLIFO< DataType >::readable | ( | ) | const [inline, virtual] |
virtual const DataType& RTC::SyncLIFO< DataType >::get | ( | ) | [inline, virtual] |
Get data from the buffer.
Pure virtual function to get data from the buffer.
Implements RTC::BufferBase< DataType >.
virtual void RTC::SyncLIFO< DataType >::gbump | ( | int | n | ) | [inline, virtual] |
virtual DataType& RTC::SyncLIFO< DataType >::getNext | ( | ) | [inline, virtual] |
virtual int RTC::SyncLIFO< DataType >::getn | ( | DataType * | data, | |
int | size | |||
) | [inline, virtual] |
virtual bool RTC::SyncLIFO< DataType >::isEmpty | ( | ) | const [inline, virtual] |
Check on whether the buffer is empty.
Pure virtual function to check on whether the buffer is empty.
Implements RTC::BufferBase< DataType >.
virtual void RTC::SyncLIFO< DataType >::underflow | ( | ) | [inline, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::wptr | ( | ) | [inline, protected, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::wnext | ( | ) | [inline, protected, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::wbegin | ( | ) | [inline, protected, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::wend | ( | ) | [inline, protected, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::rptr | ( | ) | [inline, protected, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::rnext | ( | ) | [inline, protected, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::rbegin | ( | ) | [inline, protected, virtual] |
virtual DataType* RTC::SyncLIFO< DataType >::rend | ( | ) | [inline, protected, virtual] |
DataType* RTC::SyncLIFO< DataType >::m_buffer [protected] |
int RTC::SyncLIFO< DataType >::m_size [protected] |
DataType* RTC::SyncLIFO< DataType >::m_buffer_org [protected] |
int RTC::SyncLIFO< DataType >::m_size_org [protected] |
int RTC::SyncLIFO< DataType >::m_wpos [protected] |
int RTC::SyncLIFO< DataType >::m_wnext [protected] |
int RTC::SyncLIFO< DataType >::m_rpos [protected] |
int RTC::SyncLIFO< DataType >::m_rnext [protected] |
int& RTC::SyncLIFO< DataType >::m_wbegin [protected] |
int & RTC::SyncLIFO< DataType >::m_wend [protected] |
int& RTC::SyncLIFO< DataType >::m_rbegin [protected] |
int & RTC::SyncLIFO< DataType >::m_rend [protected] |