Orocos Real-Time Toolkit
2.6.0
|
Any Buffer has a capacity, size and can be empty or full. More...
#include <rtt/base/BufferBase.hpp>
Public Types | |
typedef int | size_type |
typedef boost::shared_ptr < BufferBase > | shared_ptr |
Public Member Functions | |
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. |
Any Buffer has a capacity, size and can be empty or full.
This class contains the type-independent methods of a Buffer.
Definition at line 52 of file BufferBase.hpp.
virtual size_type RTT::base::BufferBase::capacity | ( | ) | const [pure virtual] |
Returns the maximum number of items that can be stored in the buffer.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
virtual void RTT::base::BufferBase::clear | ( | ) | [pure virtual] |
Clears all contents of this buffer.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
Referenced by RTT::internal::ChannelBufferElement< T >::clear().
virtual bool RTT::base::BufferBase::empty | ( | ) | const [pure virtual] |
Check if this buffer is empty.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
virtual bool RTT::base::BufferBase::full | ( | ) | const [pure virtual] |
Check if this buffer is full.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
virtual size_type RTT::base::BufferBase::size | ( | ) | const [pure virtual] |
Returns the actual number of items that are stored in the buffer.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.