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