This interface describes a write interface for value types. More...
#include <rtt/WriteInterface.hpp>
Public Types | |
| typedef T | value_t |
|
typedef boost::call_traits< T > ::param_type | param_t |
| typedef BufferBase::size_type | size_type |
|
typedef boost::shared_ptr < BufferBase > | shared_ptr |
Public Member Functions | |
| virtual bool | Push (param_t item)=0 |
| Write a single value to the buffer. | |
| virtual size_type | Push (const std::vector< value_t > &items)=0 |
| Write a sequence of values to the buffer. | |
| virtual size_type | capacity () const =0 |
| Returns the maximum number of items that can be stored in the buffer. | |
| virtual size_type | size () const =0 |
| Returns the actual number of items that are stored in the buffer. | |
| virtual bool | empty () const =0 |
| Check if this buffer is empty. | |
| virtual bool | full () const =0 |
| Check if this buffer is full. | |
| virtual void | clear ()=0 |
| Clears all contents of this buffer. | |
This interface describes a write interface for value types.
| T | The value type write into this buffer. |
Definition at line 52 of file WriteInterface.hpp.
| virtual size_type RTT::BufferBase::capacity | ( | ) | const [pure virtual, inherited] |
Returns the maximum number of items that can be stored in the buffer.
Implemented in RTT::BufferLocked< T, ReadPolicy, WritePolicy >, RTT::BufferLockFree< T, ReadPolicy, WritePolicy >, and RTT::Corba::CorbaBufferProxy< T >.
| virtual bool RTT::BufferBase::empty | ( | ) | const [pure virtual, inherited] |
Check if this buffer is empty.
Implemented in RTT::BufferLocked< T, ReadPolicy, WritePolicy >, RTT::BufferLockFree< T, ReadPolicy, WritePolicy >, and RTT::Corba::CorbaBufferProxy< T >.
| virtual bool RTT::BufferBase::full | ( | ) | const [pure virtual, inherited] |
Check if this buffer is full.
Implemented in RTT::BufferLocked< T, ReadPolicy, WritePolicy >, RTT::BufferLockFree< T, ReadPolicy, WritePolicy >, and RTT::Corba::CorbaBufferProxy< T >.
| virtual size_type RTT::WriteInterface< T >::Push | ( | const std::vector< value_t > & | items | ) | [pure virtual] |
Write a sequence of values to the buffer.
| items | the values to write |
Implemented in RTT::BufferLocked< T, ReadPolicy, WritePolicy >, RTT::BufferLockFree< T, ReadPolicy, WritePolicy >, and RTT::Corba::CorbaBufferProxy< T >.
| virtual bool RTT::WriteInterface< T >::Push | ( | param_t | item | ) | [pure virtual] |
Write a single value to the buffer.
| item | the value to write |
| virtual size_type RTT::BufferBase::size | ( | ) | const [pure virtual, inherited] |
Returns the actual number of items that are stored in the buffer.
Implemented in RTT::BufferLocked< T, ReadPolicy, WritePolicy >, RTT::BufferLockFree< T, ReadPolicy, WritePolicy >, and RTT::Corba::CorbaBufferProxy< T >.
1.6.3