#include <BufferBase.hpp>
Classes | |
class | Options |
Public Types | |
typedef boost::shared_ptr< BufferBase > | shared_ptr |
typedef int | size_type |
Public Member Functions | |
virtual size_type | capacity () const =0 |
virtual void | clear ()=0 |
virtual size_type | dropped () const =0 |
virtual bool | empty () const =0 |
virtual bool | full () const =0 |
virtual size_type | size () const =0 |
virtual | ~BufferBase () |
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 53 of file BufferBase.hpp.
typedef boost::shared_ptr< BufferBase > RTT::base::BufferBase::shared_ptr |
Definition at line 57 of file BufferBase.hpp.
typedef int RTT::base::BufferBase::size_type |
Definition at line 56 of file BufferBase.hpp.
|
virtual |
Definition at line 46 of file BufferBase.cpp.
|
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 >.
|
pure virtual |
Clears all contents of this buffer.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
|
pure virtual |
Returns the number of dropped samples, because the buffer was full
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
|
pure virtual |
Check if this buffer is empty.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
|
pure virtual |
Check if this buffer is full.
Implemented in RTT::base::BufferLocked< T >, RTT::base::BufferUnSync< T >, and RTT::base::BufferLockFree< T >.
|
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 >.