RTT::detail::UnboundDataSource< BoundType > Class Template Reference

A special DataSource only to be used for if you understand the copy()/clone() semantics very well. More...

#include <rtt/DataSources.hpp>

List of all members.

Public Types

typedef BoundType::result_t T
typedef boost::intrusive_ptr
< UnboundDataSource< BoundType > > 
shared_ptr

Public Member Functions

 UnboundDataSource (T data)
virtual BoundType * clone () const
virtual UnboundDataSource
< BoundType > * 
copy (std::map< const DataSourceBase *, DataSourceBase * > &replace) const

Detailed Description

template<typename BoundType>
class RTT::detail::UnboundDataSource< BoundType >

A special DataSource only to be used for if you understand the copy()/clone() semantics very well.

It has different copy semantics in comparison to 'bound' DataSources (like ValueDataSource), being that, it returns new copies in copy(), and returns a clone() of the contained datasource in clone(). A clone() reduces this 'UnboundDataSource' to a 'BoundType' data source.

Parameters:
BoundType The type to inherit from and to return in clone(). Typically a ValueDataSource or IndexedValueDataSource type.

Definition at line 298 of file DataSources.hpp.


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