Concrete buffer class for dummy. More...
#include <BufferBase.h>
Public Member Functions | |
virtual bool | isEmpty (void) const |
Check on whether the buffer is empty. | |
virtual bool | isFull (void) const |
Check on whether the buffer is full. | |
virtual long int | length (void) const |
Get the buffer length (always 1) | |
NullBuffer (long int size=1) | |
Constructer. | |
virtual bool | read (DataType &value) |
Read data from the buffer. | |
virtual bool | write (const DataType &value) |
Write data into the buffer. | |
virtual | ~NullBuffer (void) |
Destructor. | |
Protected Member Functions | |
virtual const DataType & | get (void) |
Get data from the buffer. | |
virtual DataType & | getRef (void) |
Get the buffer's reference to be written the next. | |
virtual void | put (const DataType &data) |
Store data into the buffer. | |
Private Attributes | |
DataType | m_data |
long int | m_length |
Concrete buffer class for dummy.
Concrete buffer class for dummy. Buffer length is fixed to 1. The users specify data type to hold it in a buffer as <DataType>.
DataType | Data type to hold in a buffer |
Definition at line 552 of file BufferBase.h.
RTC::NullBuffer< DataType >::NullBuffer | ( | long int | size = 1 | ) | [inline] |
Constructer.
Constructer. Initialize buffer length to always 1.
size | Buffer length(Not use) |
Definition at line 577 of file BufferBase.h.
virtual RTC::NullBuffer< DataType >::~NullBuffer | ( | void | ) | [inline, virtual] |
virtual const DataType& RTC::NullBuffer< DataType >::get | ( | void | ) | [inline, protected, virtual] |
Get data from the buffer.
Get data from the buffer.
Implements RTC::BufferBase< DataType >.
Definition at line 775 of file BufferBase.h.
virtual DataType& RTC::NullBuffer< DataType >::getRef | ( | void | ) | [inline, protected, virtual] |
Get the buffer's reference to be written the next.
Get the reference to be written buffer. Return always same position because this buffer's length is always 1.
Definition at line 802 of file BufferBase.h.
virtual bool RTC::NullBuffer< DataType >::isEmpty | ( | void | ) | const [inline, virtual] |
Check on whether the buffer is empty.
Check on whether the buffer is empty. (Always false.)
Definition at line 726 of file BufferBase.h.
virtual bool RTC::NullBuffer< DataType >::isFull | ( | void | ) | const [inline, virtual] |
Check on whether the buffer is full.
Check on whether the buffer is full. (Always false.)
Definition at line 702 of file BufferBase.h.
virtual long int RTC::NullBuffer< DataType >::length | ( | void | ) | const [inline, virtual] |
Get the buffer length (always 1)
Get the buffer length. (Return always 1.)
Implements RTC::BufferBase< DataType >.
Definition at line 620 of file BufferBase.h.
virtual void RTC::NullBuffer< DataType >::put | ( | const DataType & | data | ) | [inline, protected, virtual] |
Store data into the buffer.
Store data which were given with an argument into the buffer.
data | Target data to store. |
Implements RTC::BufferBase< DataType >.
Definition at line 751 of file BufferBase.h.
virtual bool RTC::NullBuffer< DataType >::read | ( | DataType & | value | ) | [inline, virtual] |
Read data from the buffer.
Read data stored in the buffer.
value | Read data. |
Definition at line 677 of file BufferBase.h.
virtual bool RTC::NullBuffer< DataType >::write | ( | const DataType & | value | ) | [inline, virtual] |
Write data into the buffer.
Write data which were given with an argument into the buffer.
value | Target data to write. |
Definition at line 648 of file BufferBase.h.
DataType RTC::NullBuffer< DataType >::m_data [private] |
Definition at line 808 of file BufferBase.h.
long int RTC::NullBuffer< DataType >::m_length [private] |
Definition at line 809 of file BufferBase.h.