Public Member Functions | |
virtual ReturnCode | advanceRptr (long int n=1) |
Forward n reading pointers. | |
virtual ReturnCode | advanceWptr (long int n=1) |
Forward n writing pointers. | |
virtual bool | empty (void) const |
Check on whether the buffer is empty. | |
virtual bool | full (void) const |
Check on whether the buffer is full. | |
virtual ReturnCode | get (DataType &value) |
Read data from the buffer. | |
virtual DataType & | get () |
Read data from the buffer. | |
virtual void | init (const coil::Properties &prop) |
Set the buffer. | |
virtual size_t | length (void) const |
Get the buffer length. | |
virtual ReturnCode | length (size_t n) |
Set the buffer length. | |
virtual ReturnCode | put (const DataType &value) |
Write data into the buffer. | |
virtual ReturnCode | read (DataType &value, long int sec=-1, long int nsec=-1) |
Read data from the buffer. | |
virtual size_t | readable () const |
Write data into the buffer. | |
virtual ReturnCode | reset () |
Reset the buffer status. | |
BUFFERSTATUS_ENUM | RingBufferMock (long int length=8) |
virtual DataType * | rptr (long int n=0) |
Get the reading pointer. | |
void | set_read_return_value (::RTC::BufferStatus::Enum value) |
void | set_readable_return_value (size_t value) |
void | setLogger (Logger *logger) |
virtual DataType * | wptr (long int n=0) |
Get the writing pointer. | |
virtual size_t | writable () const |
Get a writable number. | |
virtual ReturnCode | write (const DataType &value, long int sec=-1, long int nsec=-1) |
Write data into the buffer. | |
virtual | ~RingBufferMock (void) |
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 |
size_t | m_readable_return_value |
Definition at line 329 of file OutPortTests.cpp.
BUFFERSTATUS_ENUM OutPort::RingBufferMock< DataType >::RingBufferMock | ( | long int | length = 8 | ) | [inline] |
Definition at line 334 of file OutPortTests.cpp.
virtual OutPort::RingBufferMock< DataType >::~RingBufferMock | ( | void | ) | [inline, virtual] |
Definition at line 342 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< DataType >::advanceRptr | ( | long int | n = 1 | ) | [inline, virtual] |
Forward n reading pointers.
Pure virtual function to forward n reading pointers.
Implements RTC::BufferBase< DataType >.
Definition at line 447 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< DataType >::advanceWptr | ( | long int | n = 1 | ) | [inline, virtual] |
Forward n writing pointers.
Pure virtual function to forward n writing pointers.
Implements RTC::BufferBase< DataType >.
Definition at line 398 of file OutPortTests.cpp.
virtual bool OutPort::RingBufferMock< DataType >::empty | ( | void | ) | 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 >.
Definition at line 501 of file OutPortTests.cpp.
virtual bool OutPort::RingBufferMock< DataType >::full | ( | void | ) | 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 >.
Definition at line 431 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< DataType >::get | ( | DataType & | value | ) | [inline, virtual] |
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 455 of file OutPortTests.cpp.
virtual DataType& OutPort::RingBufferMock< DataType >::get | ( | ) | [inline, virtual] |
Read data from the buffer.
Pure virtual function to read data from the buffer.
Implements RTC::BufferBase< DataType >.
Definition at line 463 of file OutPortTests.cpp.
virtual void OutPort::RingBufferMock< DataType >::init | ( | const coil::Properties & | prop | ) | [inline, virtual] |
Set the buffer.
Implements RTC::BufferBase< DataType >.
Definition at line 359 of file OutPortTests.cpp.
virtual size_t OutPort::RingBufferMock< DataType >::length | ( | void | ) | const [inline, virtual] |
Get the buffer length.
Pure virtual function to get the buffer length.
Implements RTC::BufferBase< DataType >.
Definition at line 366 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< DataType >::length | ( | size_t | n | ) | [inline, virtual] |
Set the buffer length.
Pure virtual function to set the buffer length.
Implements RTC::BufferBase< DataType >.
Definition at line 374 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< 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 >.
Definition at line 406 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< DataType >::read | ( | DataType & | value, |
long int | sec = -1 , |
||
long int | nsec = -1 |
||
) | [inline, virtual] |
Read data from the buffer.
Pure virtual function to read data from the buffer.
value | Read data. |
Implements RTC::BufferBase< DataType >.
Definition at line 471 of file OutPortTests.cpp.
virtual size_t OutPort::RingBufferMock< DataType >::readable | ( | ) | const [inline, virtual] |
Write data into the buffer.
Pure virtual function to get a reading number.
Implements RTC::BufferBase< DataType >.
Definition at line 485 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< DataType >::reset | ( | ) | [inline, virtual] |
Reset the buffer status.
Pure virtual function to reset the buffer status.
Implements RTC::BufferBase< DataType >.
Definition at line 382 of file OutPortTests.cpp.
virtual DataType* OutPort::RingBufferMock< DataType >::rptr | ( | long int | n = 0 | ) | [inline, virtual] |
Get the reading pointer.
Pure virtual function to get the reading pointer.
Implements RTC::BufferBase< DataType >.
Definition at line 439 of file OutPortTests.cpp.
void OutPort::RingBufferMock< DataType >::set_read_return_value | ( | ::RTC::BufferStatus::Enum | value | ) | [inline] |
Definition at line 351 of file OutPortTests.cpp.
void OutPort::RingBufferMock< DataType >::set_readable_return_value | ( | size_t | value | ) | [inline] |
Definition at line 493 of file OutPortTests.cpp.
void OutPort::RingBufferMock< DataType >::setLogger | ( | Logger * | logger | ) | [inline] |
Definition at line 509 of file OutPortTests.cpp.
virtual DataType* OutPort::RingBufferMock< DataType >::wptr | ( | long int | n = 0 | ) | [inline, virtual] |
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 390 of file OutPortTests.cpp.
virtual size_t OutPort::RingBufferMock< DataType >::writable | ( | ) | const [inline, virtual] |
Get a writable number.
Pure virtual function to get a writable number.
Implements RTC::BufferBase< DataType >.
Definition at line 423 of file OutPortTests.cpp.
virtual ReturnCode OutPort::RingBufferMock< DataType >::write | ( | const DataType & | value, |
long int | sec = -1 , |
||
long int | nsec = -1 |
||
) | [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 >.
Definition at line 414 of file OutPortTests.cpp.
Logger OutPort::RingBufferMock< DataType >::logger [static] |
Definition at line 514 of file OutPortTests.cpp.
std::vector<DataType> OutPort::RingBufferMock< DataType >::m_buffer [private] |
Definition at line 517 of file OutPortTests.cpp.
DataType OutPort::RingBufferMock< DataType >::m_data [private] |
Definition at line 516 of file OutPortTests.cpp.
Logger* OutPort::RingBufferMock< DataType >::m_logger [private] |
Definition at line 518 of file OutPortTests.cpp.
::RTC::BufferStatus::Enum OutPort::RingBufferMock< DataType >::m_read_return_value [private] |
Definition at line 519 of file OutPortTests.cpp.
size_t OutPort::RingBufferMock< DataType >::m_readable_return_value [private] |
Definition at line 520 of file OutPortTests.cpp.