$search

RTT::Alias Class Reference

#include <Attribute.hpp>

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

List of all members.

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


Member Function Documentation

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   
)

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.

Definition at line 72 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Mar 1 16:27:38 2013