RTT::Alias< T > Class Template Reference

This class is the most basic Attribute implementation (only suitable for reading a DataSource), does not allow any assignment, just stores a DataSource<T>, and returns it. More...

#include <rtt/Attribute.hpp>

Inheritance diagram for RTT::Alias< T >:
RTT::AttributeBase

List of all members.

Public Member Functions

 Alias (const std::string &name, typename DataSource< T >::shared_ptr d)
DataSourceBase::shared_ptr getDataSource () const
 Return a DataSource which contains the same contents.
Alias< T > * clone () const
 Returns a clone of this AttributeBase.
Alias< T > * copy (std::map< const DataSourceBase *, DataSourceBase * > &replacements, bool)
 Returns a copy of this AttributeBase.
const std::string & getName () const
 Get the name of this instance.
bool ready () const
 Returns true if the Attribute was correctly initialised.

Protected Attributes

std::string mname

Detailed Description

template<typename T>
class RTT::Alias< T >

This class is the most basic Attribute implementation (only suitable for reading a DataSource), does not allow any assignment, just stores a DataSource<T>, and returns it.

This also makes it useful as an alias of temporary expressions like literal values, and rhs expressions.

Definition at line 313 of file Attribute.hpp.


Member Function Documentation

template<typename T>
Alias<T>* RTT::Alias< T >::copy ( std::map< const DataSourceBase *, DataSourceBase * > &  replacements,
bool  instantiate 
) [inline, virtual]

Returns a copy of this AttributeBase.

Uses the given replacements to copy held DataSources.

Parameters:
instantiate Set to true to get a copy which will return itself on any future copy request.

Implements RTT::AttributeBase.

Definition at line 333 of file Attribute.hpp.

const std::string& RTT::AttributeBase::getName (  )  const [inherited]

Get the name of this instance.

Returns:
the name

Referenced by RTT::Constant< T >::operator=(), and RTT::Attribute< T >::operator=().


The documentation for this class was generated from the following file:

Generated on Tue Jul 13 11:03:24 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.1