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>
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 |
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 311 of file Attribute.hpp.
| 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.
| instantiate | Set to true to get a copy which will return itself on any future copy request. |
Implements RTT::AttributeBase.
Definition at line 331 of file Attribute.hpp.
| const std::string& RTT::AttributeBase::getName | ( | ) | const [inherited] |
Get the name of this instance.
1.6.3