BufferBase Class Reference

#include <rtt/BufferBase.hpp>

Inheritance diagram for BufferBase:

ReadInterface WriteInterface BufferInterface BufferInterface BufferLocked BufferLockFree CorbaBufferProxy BufferLocked BufferLockFree CorbaBufferProxy

List of all members.


Detailed Description

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 49 of file BufferBase.hpp.


Public Types

typedef int size_type
typedef
boost::shared_ptr
< BufferBase
shared_ptr

Public Member Functions

virtual ~BufferBase ()
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.

Member Function Documentation

virtual size_type capacity (  )  const [pure virtual]

Returns the maximum number of items that can be stored in the buffer.

Returns:
maximum number of items.

Implemented in BufferLocked, BufferLockFree, and CorbaBufferProxy.

virtual size_type size (  )  const [pure virtual]

Returns the actual number of items that are stored in the buffer.

Returns:
number of items.

Implemented in BufferLocked, BufferLockFree, and CorbaBufferProxy.

virtual bool empty (  )  const [pure virtual]

Check if this buffer is empty.

Returns:
true if size() == 0

Implemented in BufferLocked, BufferLockFree, and CorbaBufferProxy.

virtual bool full (  )  const [pure virtual]

Check if this buffer is full.

Returns:
true if size() == capacity()

Implemented in BufferLocked, BufferLockFree, and CorbaBufferProxy.


The documentation for this class was generated from the following file:
Generated on Tue Mar 25 17:41:53 2008 for OrocosReal-TimeToolkit by  doxygen 1.5.3