Public Member Functions | Private Attributes | List of all members
RTT::Alias Class Reference

#include <Attribute.hpp>

Inheritance diagram for RTT::Alias:
Inheritance graph

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)
Aliasclone () const
Aliascopy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacements, bool)
base::DataSourceBase::shared_ptr getDataSource () const
- Public Member Functions inherited from RTT::base::AttributeBase
 AttributeBase ()
 AttributeBase (const std::string &name)
virtual AttributeBasecopy (std::map< const DataSourceBase *, DataSourceBase * > &replacements, bool instantiate)=0
const std::string & getName () const
bool ready () const
void setName (std::string const &new_name)
virtual ~AttributeBase ()

Private Attributes

base::DataSourceBase::shared_ptr data

Additional Inherited Members

- Protected Attributes inherited from RTT::base::AttributeBase
std::string mname

Detailed Description

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.

Constructor & Destructor Documentation

RTT::Alias::Alias ( const std::string &  name,
base::DataSourceBase::shared_ptr  d 

Definition at line 69 of file Attribute.cpp.

template<class Owner >
RTT::Alias::Alias ( const std::string &  name,
base::DataSourceBase::shared_ptr  d,
Owner  owner 

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).

nameThe name of this instance.
dThe aliased data source.
oThe owner, which has a function 'addAttribute(AttributeBase*)'.

Definition at line 392 of file Attribute.hpp.

Member Function Documentation

Alias * RTT::Alias::clone ( ) const

Returns a clone of this AttributeBase.

Implements RTT::base::AttributeBase.

Definition at line 80 of file Attribute.cpp.

Alias * RTT::Alias::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  replacements,

Definition at line 84 of file Attribute.cpp.

base::DataSourceBase::shared_ptr RTT::Alias::getDataSource ( ) const

Return a internal::DataSource which contains the same contents.

Implements RTT::base::AttributeBase.

Definition at line 75 of file Attribute.cpp.

Member Data Documentation

base::DataSourceBase::shared_ptr RTT::Alias::data

Definition at line 378 of file Attribute.hpp.

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

Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:46