Public Member Functions | |
virtual ReturnCode | advanceRptr (long int n=1) |
Forward n reading pointers. More... | |
virtual ReturnCode | advanceWptr (long int n=1) |
Forward n writing pointers. More... | |
virtual bool | empty (void) const |
Check on whether the buffer is empty. More... | |
virtual bool | full (void) const |
Check on whether the buffer is full. More... | |
virtual ReturnCode | get (DataType &value) |
Read data from the buffer. More... | |
virtual DataType & | get () |
Read data from the buffer. More... | |
virtual void | init (const coil::Properties &prop) |
Set the buffer. More... | |
virtual size_t | length (void) const |
Get the buffer length. More... | |
virtual ReturnCode | length (size_t n) |
Set the buffer length. More... | |
virtual ReturnCode | put (const DataType &value) |
Write data into the buffer. More... | |
virtual ReturnCode | read (DataType &value, long int sec=-1, long int nsec=-1) |
Read data from the buffer. More... | |
virtual size_t | readable () const |
Write data into the buffer. More... | |
virtual ReturnCode | reset () |
Reset the buffer status. More... | |
BUFFERSTATUS_ENUM | RingBufferMock (long int length=8) |
virtual DataType * | rptr (long int n=0) |
Get the reading pointer. More... | |
void | set_read_return_value (::RTC::BufferStatus::Enum value) |
void | setLogger (Logger *logger) |
virtual DataType * | wptr (long int n=0) |
Get the writing pointer. More... | |
virtual size_t | writable () const |
Get a writable number. More... | |
virtual ReturnCode | write (const DataType &value, long int sec=-1, long int nsec=-1) |
Write data into the buffer. More... | |
virtual | ~RingBufferMock (void) |
Public Member Functions inherited from RTC::BufferBase< DataType > | |
virtual BUFFERSTATUS_ENUM | ~BufferBase (void) |
Virtual destructor. More... | |
Static Public Attributes | |
static Logger | logger |
Private Attributes | |
std::vector< DataType > | m_buffer |
DataType | m_data |
Logger * | m_logger |
::RTC::BufferStatus::Enum | m_read_return_value |
Additional Inherited Members | |
Public Types inherited from RTC::BufferStatus | |
enum | Enum { BUFFER_OK = 0, BUFFER_ERROR, BUFFER_FULL, BUFFER_EMPTY, NOT_SUPPORTED, TIMEOUT, PRECONDITION_NOT_MET } |
DataPortStatus return codes. More... | |
Static Public Member Functions inherited from RTC::BufferStatus | |
static const char * | toString (Enum status) |
Convert BufferStatus into the string. More... | |
Definition at line 131 of file OutPortPullConnectorTests.cpp.
|
inline |
Definition at line 136 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Definition at line 142 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Forward n reading pointers.
Pure virtual function to forward n reading pointers.
Implements RTC::BufferBase< DataType >.
Definition at line 247 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Forward n writing pointers.
Pure virtual function to forward n writing pointers.
Implements RTC::BufferBase< DataType >.
Definition at line 198 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Check on whether the buffer is empty.
Pure virtual function to check on whether the buffer is empty.
Implements RTC::BufferBase< DataType >.
Definition at line 293 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Check on whether the buffer is full.
Pure virtual function to check on whether the buffer is full.
Implements RTC::BufferBase< DataType >.
Definition at line 231 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Read data from the buffer.
Pure virtual function to read data form the buffer.
value | Data to read. |
Implements RTC::BufferBase< DataType >.
Definition at line 255 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Read data from the buffer.
Pure virtual function to read data from the buffer.
Implements RTC::BufferBase< DataType >.
Definition at line 263 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Set the buffer.
Implements RTC::BufferBase< DataType >.
Definition at line 159 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Get the buffer length.
Pure virtual function to get the buffer length.
Implements RTC::BufferBase< DataType >.
Definition at line 166 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Set the buffer length.
Pure virtual function to set the buffer length.
Implements RTC::BufferBase< DataType >.
Definition at line 174 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Write data into the buffer.
Pure virtual function to write data into the buffer.
value | Target data to write. |
Implements RTC::BufferBase< DataType >.
Definition at line 206 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Read data from the buffer.
Pure virtual function to read data from the buffer.
value | Read data. |
Implements RTC::BufferBase< DataType >.
Definition at line 271 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Write data into the buffer.
Pure virtual function to get a reading number.
Implements RTC::BufferBase< DataType >.
Definition at line 285 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Reset the buffer status.
Pure virtual function to reset the buffer status.
Implements RTC::BufferBase< DataType >.
Definition at line 182 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Get the reading pointer.
Pure virtual function to get the reading pointer.
Implements RTC::BufferBase< DataType >.
Definition at line 239 of file OutPortPullConnectorTests.cpp.
|
inline |
Definition at line 151 of file OutPortPullConnectorTests.cpp.
|
inline |
Definition at line 301 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Get the writing pointer.
Pure virtual function to get the writing pointer.
writeing | pinter or n previous pointer |
Implements RTC::BufferBase< DataType >.
Definition at line 190 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Get a writable number.
Pure virtual function to get a writable number.
Implements RTC::BufferBase< DataType >.
Definition at line 223 of file OutPortPullConnectorTests.cpp.
|
inlinevirtual |
Write data into the buffer.
Pure virtual function to write data into the buffer.
value | Target data to write. |
Implements RTC::BufferBase< DataType >.
Definition at line 214 of file OutPortPullConnectorTests.cpp.
|
static |
Definition at line 306 of file OutPortPullConnectorTests.cpp.
|
private |
Definition at line 309 of file OutPortPullConnectorTests.cpp.
|
private |
Definition at line 308 of file OutPortPullConnectorTests.cpp.
|
private |
Definition at line 310 of file OutPortPullConnectorTests.cpp.
|
private |
Definition at line 311 of file OutPortPullConnectorTests.cpp.