| 
    Orocos Real-Time Toolkit
    2.9.0
    
   | 
 
This class is the most basic Attribute implementation (only suitable for reading a internal::DataSource), does not allow any assignment, just stores a internal::DataSourceBase, and returns it. More...
#include <rtt/Attribute.hpp>
  
 Public Member Functions | |
| Alias (const std::string &name, base::DataSourceBase::shared_ptr d) | |
| template<class Owner > | |
| Alias (const std::string &name, base::DataSourceBase::shared_ptr d, Owner owner) | |
| Create an alias from a datasource with an owner.  More... | |
| base::DataSourceBase::shared_ptr | getDataSource () const | 
| Return a internal::DataSource which contains the same contents.  More... | |
| Alias * | clone () const | 
| Returns a clone of this AttributeBase.  More... | |
| Alias * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacements, bool) | 
| Returns a copy of this AttributeBase.  More... | |
| const std::string & | getName () const | 
| Get the name of this instance.  More... | |
| void | setName (std::string const &new_name) | 
| Get the name of this instance.  More... | |
| bool | ready () const | 
| Returns true if the Attribute was correctly initialised.  More... | |
Protected Attributes | |
| std::string | mname | 
This class is the most basic Attribute implementation (only suitable for reading a internal::DataSource), does not allow any assignment, just stores a internal::DataSourceBase, and returns it.
This also makes it useful as an alias of temporary expressions like literal values, and rhs expressions.
Definition at line 375 of file Attribute.hpp.
| RTT::Alias::Alias | ( | const std::string & | name, | 
| base::DataSourceBase::shared_ptr | d | ||
| ) | 
Definition at line 69 of file Attribute.cpp.
      
  | 
  inline | 
Create an alias from a datasource with an owner.
The owner is used to register this attribute to and is supposed to be a pointer (or shared pointer).
| name | The name of this instance. | 
| d | The aliased data source. | 
| o | The owner, which has a function 'addAttribute(AttributeBase*)'. | 
Definition at line 392 of file Attribute.hpp.
References RTT::Attribute< T >::clone(), RTT::Attribute< T >::copy(), and RTT::Attribute< T >::getDataSource().
      
  | 
  virtual | 
Returns a clone of this AttributeBase.
Implements RTT::base::AttributeBase.
Definition at line 80 of file Attribute.cpp.
References Alias(), and RTT::base::AttributeBase::mname.
      
  | 
  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::base::AttributeBase.
Definition at line 84 of file Attribute.cpp.
References Alias(), and RTT::base::AttributeBase::mname.
      
  | 
  virtual | 
Return a internal::DataSource which contains the same contents.
Implements RTT::base::AttributeBase.
Definition at line 75 of file Attribute.cpp.
      
  | 
  inherited | 
Get the name of this instance.
Definition at line 59 of file Attribute.cpp.
References RTT::base::AttributeBase::mname.
Referenced by RTT::ConfigurationInterface::getAttributeNames(), RTT::ConfigurationInterface::getValue(), RTT::ConfigurationInterface::hasAttribute(), RTT::Attribute< T >::operator=(), RTT::Constant< T >::operator=(), RTT::ConfigurationInterface::removeValue(), and RTT::ConfigurationInterface::setValue().
      
  | 
  inlineinherited | 
Returns true if the Attribute was correctly initialised.
Definition at line 89 of file AttributeBase.hpp.
Referenced by RTT::ConfigurationInterface::addAttribute(), and RTT::ConfigurationInterface::addConstant().
      
  | 
  inherited | 
Get the name of this instance.
Definition at line 64 of file Attribute.cpp.
References RTT::base::AttributeBase::mname.
Referenced by RTT::ConfigurationInterface::addAttribute(), RTT::ConfigurationInterface::addConstant(), and RTT::scripting::ExpressionParser::getHandle().
      
  | 
  protectedinherited | 
Definition at line 55 of file AttributeBase.hpp.
Referenced by RTT::scripting::SendHandleAlias::clone(), RTT::Attribute< T >::clone(), RTT::Constant< T >::clone(), clone(), RTT::scripting::SendHandleAlias::copy(), RTT::Attribute< T >::copy(), RTT::Constant< T >::copy(), copy(), RTT::base::AttributeBase::getName(), RTT::Attribute< T >::operator=(), RTT::Constant< T >::operator=(), and RTT::base::AttributeBase::setName().
 1.8.11