#include <Attribute.hpp>
Public Member Functions | |
template<class Owner > | |
Alias (const std::string &name, base::DataSourceBase::shared_ptr d, Owner owner) | |
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) | |
Alias (const std::string &name, base::DataSourceBase::shared_ptr d) | |
Alias * | clone () const |
Alias * | clone () const |
Alias * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacements, bool) |
Alias * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacements, bool) |
base::DataSourceBase::shared_ptr | getDataSource () const |
base::DataSourceBase::shared_ptr | getDataSource () const |
Private Attributes | |
base::DataSourceBase::shared_ptr | data |
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 373 of file install/include/rtt/Attribute.hpp.
RTT::Alias::Alias | ( | const std::string & | name, | |
base::DataSourceBase::shared_ptr | d | |||
) |
RTT::Alias::Alias | ( | const std::string & | name, | |
base::DataSourceBase::shared_ptr | d, | |||
Owner | owner | |||
) | [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 390 of file install/include/rtt/Attribute.hpp.
RTT::Alias::Alias | ( | const std::string & | name, | |
base::DataSourceBase::shared_ptr | d | |||
) |
RTT::Alias::Alias | ( | const std::string & | name, | |
base::DataSourceBase::shared_ptr | d, | |||
Owner | owner | |||
) | [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 rtt/Attribute.hpp.
Alias* RTT::Alias::clone | ( | ) | const [virtual] |
Returns a clone of this AttributeBase.
Implements RTT::base::AttributeBase.
Alias * RTT::Alias::clone | ( | ) | const [virtual] |
Returns a clone of this AttributeBase.
Implements RTT::base::AttributeBase.
Definition at line 77 of file Attribute.cpp.
Alias* RTT::Alias::copy | ( | std::map< const base::DataSourceBase *, base::DataSourceBase * > & | replacements, | |
bool | ||||
) |
Alias * RTT::Alias::copy | ( | std::map< const base::DataSourceBase *, base::DataSourceBase * > & | replacements, | |
bool | ||||
) |
Definition at line 81 of file Attribute.cpp.
base::DataSourceBase::shared_ptr RTT::Alias::getDataSource | ( | ) | const [virtual] |
Return a internal::DataSource which contains the same contents.
Implements RTT::base::AttributeBase.
base::DataSourceBase::shared_ptr RTT::Alias::getDataSource | ( | ) | const [virtual] |
Return a internal::DataSource which contains the same contents.
Implements RTT::base::AttributeBase.
Definition at line 72 of file Attribute.cpp.
Definition at line 376 of file install/include/rtt/Attribute.hpp.