RTT::Corba::CorbaBufferProxy< T > Class Template Reference

A Buffer Proxy to a remote Orocos Buffer connection. More...

#include <rtt/corba/CorbaBufferProxy.hpp>

Inheritance diagram for RTT::Corba::CorbaBufferProxy< T >:
RTT::BufferInterface< T > RTT::ReadInterface< T > RTT::WriteInterface< T > RTT::BufferBase RTT::BufferBase

List of all members.

Public Types

typedef ReadInterface< T >
::reference_t 
reference_t
typedef WriteInterface< T >
::param_t 
param_t
typedef BufferInterface< T >
::size_type 
size_type
typedef T value_t
typedef boost::shared_ptr
< BufferInterface< T > > 
shared_ptr

Public Member Functions

 CorbaBufferProxy (BufferChannel_ptr ec)
 Create a buffer which uses the Corba Event Service as transport medium.
 ~CorbaBufferProxy ()
 Destructor.
bool Push (param_t item)
size_type Push (const std::vector< T > &items)
 Write a sequence of values to the buffer.
bool Pop (reference_t item)
size_type Pop (std::vector< T > &items)
 Read the whole buffer.
value_t front () const
 Get the next value to be Pop()'ed, or the default value if empty.
size_type capacity () const
 Returns the maximum number of items that can be stored in the buffer.
size_type size () const
 Returns the actual number of items that are stored in the buffer.
void clear ()
 Clears all contents of this buffer.
bool empty () const
 Check if this buffer is empty.
bool full () const
 Check if this buffer is full.
virtual bool Pop (reference_t item)=0
 Read the oldest value from the buffer.
virtual bool Push (param_t item)=0
 Write a single value to the buffer.

Detailed Description

template<class T>
class RTT::Corba::CorbaBufferProxy< T >

A Buffer Proxy to a remote Orocos Buffer connection.

Definition at line 61 of file CorbaBufferProxy.hpp.


Constructor & Destructor Documentation

template<class T >
RTT::Corba::CorbaBufferProxy< T >::CorbaBufferProxy ( BufferChannel_ptr  ec  )  [inline]

Create a buffer which uses the Corba Event Service as transport medium.

Parameters:
ec The buffer channel which transfers data of type T

Definition at line 78 of file CorbaBufferProxy.hpp.


Member Function Documentation

template<class T >
size_type RTT::Corba::CorbaBufferProxy< T >::capacity (  )  const [inline, virtual]

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

Returns:
maximum number of items.

Implements RTT::BufferBase.

Definition at line 157 of file CorbaBufferProxy.hpp.

template<class T >
bool RTT::Corba::CorbaBufferProxy< T >::empty (  )  const [inline, virtual]

Check if this buffer is empty.

Returns:
true if size() == 0

Implements RTT::BufferBase.

Definition at line 180 of file CorbaBufferProxy.hpp.

template<class T >
bool RTT::Corba::CorbaBufferProxy< T >::full (  )  const [inline, virtual]

Check if this buffer is full.

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

Implements RTT::BufferBase.

Definition at line 188 of file CorbaBufferProxy.hpp.

template<class T>
virtual bool RTT::ReadInterface< T >::Pop ( reference_t  item  )  [pure virtual, inherited]

Read the oldest value from the buffer.

Parameters:
item is to be set with a value from the buffer.
Returns:
true if something was read.
template<class T >
size_type RTT::Corba::CorbaBufferProxy< T >::Pop ( std::vector< T > &  items  )  [inline, virtual]

Read the whole buffer.

Parameters:
items is to be filled with all values in the buffer, with items.begin() the oldest value.
Returns:
the number of items read.

Implements RTT::ReadInterface< T >.

Definition at line 133 of file CorbaBufferProxy.hpp.

template<class T>
virtual bool RTT::WriteInterface< T >::Push ( param_t  item  )  [pure virtual, inherited]

Write a single value to the buffer.

Parameters:
item the value to write
Returns:
false if the buffer is full.
template<class T >
size_type RTT::Corba::CorbaBufferProxy< T >::Push ( const std::vector< T > &  items  )  [inline, virtual]

Write a sequence of values to the buffer.

Parameters:
items the values to write
Returns:
the number of values written (may be less than items.size())

Implements RTT::WriteInterface< T >.

Definition at line 103 of file CorbaBufferProxy.hpp.

template<class T >
size_type RTT::Corba::CorbaBufferProxy< T >::size (  )  const [inline, virtual]

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

Returns:
number of items.

Implements RTT::BufferBase.

Definition at line 165 of file CorbaBufferProxy.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 13:22:45 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3