#include </home/sspr/src/www/orocos-1.0/export/build/orocos-rtt-1.2.2/build/rtt/Attribute.hpp>
Inheritance diagram for Constant:

Public Member Functions | |
| Constant (const std::string &name, T t) | |
| Create a constant with a fixed value t. | |
| Constant (const std::string &name, DataSource< T > *d) | |
| Create a constant wich holds a DataSource d. | |
| Constant (AttributeBase *ab) | |
| Create a constant which mirrors an Attribute. | |
| Constant< T > & | operator= (AttributeBase *ab) |
| Initialise an Attribute which mirrors an AttributeBase. | |
| T | get () const |
| Get the value of this Constant. | |
| DataSourceBase::shared_ptr | getDataSource () const |
| Return a DataSource which contains the same contents. | |
| Constant< T > * | clone () const |
| Returns a clone of this AttributeBase. | |
| Constant< T > * | copy (std::map< const DataSourceBase *, DataSourceBase * > &replacements, bool instantiate) |
| Returns a copy of this AttributeBase. | |
| const std::string & | getName () const |
| Get the name of this instance. | |
| bool | ready () const |
| Returns true if the Attribute was correctly initialised. | |
Public Attributes | |
| DataSource< T >::shared_ptr | data |
Protected Attributes | |
| std::string | mname |
| Constant | ( | AttributeBase * | ab | ) | [inline] |
| Constant<T>& operator= | ( | AttributeBase * | ab | ) | [inline] |
Initialise an Attribute which mirrors an AttributeBase.
If successful, this constant will always have the same value as ab. In case ab is non constant, it is not accepted.
| Constant<T>* copy | ( | std::map< const DataSourceBase *, DataSourceBase * > & | replacements, | |
| bool | instantiate | |||
| ) | [inline, 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 AttributeBase.
| const std::string& getName | ( | ) | const [inherited] |
Get the name of this instance.
1.5.1