Public Member Functions | Private Attributes
RTT::Alias Class Reference

#include <Attribute.hpp>

Inheritance diagram for RTT::Alias:
Inheritance graph
[legend]

List of all members.

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

Private Attributes

base::DataSourceBase::shared_ptr data

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

Parameters:
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 [virtual]

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,
bool   
)

Definition at line 84 of file Attribute.cpp.

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

Implements RTT::base::AttributeBase.

Definition at line 75 of file Attribute.cpp.


Member Data Documentation

Definition at line 378 of file Attribute.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Fri Sep 9 2016 04:02:18