Orocos Real-Time Toolkit  2.8.3
Public Types | Public Member Functions | List of all members
RTT::types::TemplateValueFactory< T > Class Template Reference

#include <rtt/types/TemplateValueFactory.hpp>

Inheritance diagram for RTT::types::TemplateValueFactory< T >:
RTT::types::ValueFactory RTT::types::PrimitiveTypeInfo< T, has_ostream > RTT::types::PrimitiveTypeInfo< T, use_ostream > RTT::types::BoostArrayTypeInfo< T, has_ostream > RTT::types::CArrayTypeInfo< T, has_ostream > RTT::types::PrimitiveSequenceTypeInfo< T, has_ostream > RTT::types::TemplateTypeInfo< T, use_ostream > RTT::types::TemplateTypeInfo< T, false > RTT::types::TemplateTypeInfo< T, has_ostream > RTT::types::TemplateTypeInfo< T, true > RTT::types::EnumTypeInfo< T > RTT::types::SequenceTypeInfo< T, has_ostream > RTT::types::StructTypeInfo< T, has_ostream > RTT::types::StdTypeInfo< T >

Public Types

typedef T DataType
 

Public Member Functions

base::AttributeBasebuildConstant (std::string name, base::DataSourceBase::shared_ptr dsb) const
 Build a non modifyable instance of this type. More...
 
base::AttributeBasebuildVariable (std::string name) const
 Build a non modifyable instance of this type. More...
 
base::AttributeBasebuildAttribute (std::string name, base::DataSourceBase::shared_ptr in) const
 Build an Attribute of this type. More...
 
base::AttributeBasebuildAlias (std::string name, base::DataSourceBase::shared_ptr in) const
 build an alias with b as the value. More...
 
base::DataSourceBase::shared_ptr buildActionAlias (base::ActionInterface *action, base::DataSourceBase::shared_ptr in) const
 Returns a DataSource that first executes an action and returns the result of another data source. More...
 
virtual base::PropertyBasebuildProperty (const std::string &name, const std::string &desc, base::DataSourceBase::shared_ptr source=0) const
 Build a Property of this type. More...
 
virtual base::DataSourceBase::shared_ptr buildValue () const
 Build a internal::ValueDataSource of this type. More...
 
virtual base::DataSourceBase::shared_ptr buildReference (void *ptr) const
 Build a internal::ReferenceDataSource of this type, pointing to the given pointer. More...
 
Type building/factory functions

Used to create objects that hold data of a certain type.

virtual base::AttributeBasebuildConstant (std::string name, base::DataSourceBase::shared_ptr, int sizehint) const
 Build a non modifyable instance of this type. More...
 
virtual base::AttributeBasebuildVariable (std::string name, int sizehint) const
 Build a modifyable instance of this type. More...
 

Detailed Description

template<class T>
class RTT::types::TemplateValueFactory< T >

Definition at line 15 of file TemplateValueFactory.hpp.

Member Typedef Documentation

template<class T>
typedef T RTT::types::TemplateValueFactory< T >::DataType

Definition at line 19 of file TemplateValueFactory.hpp.

Member Function Documentation

template<class T>
base::DataSourceBase::shared_ptr RTT::types::TemplateValueFactory< T >::buildActionAlias ( base::ActionInterface action,
base::DataSourceBase::shared_ptr  source 
) const
inlinevirtual

Returns a DataSource that first executes an action and returns the result of another data source.

If source is an AssignableDataSource, an AssignableDataSource is returned of the same type, otherwise, a plain DataSource is returned.

Implements RTT::types::ValueFactory.

Definition at line 62 of file TemplateValueFactory.hpp.

template<class T>
base::AttributeBase* RTT::types::TemplateValueFactory< T >::buildAlias ( std::string  name,
base::DataSourceBase::shared_ptr  b 
) const
inlinevirtual

build an alias with b as the value.

If b is of the wrong type, 0 will be returned..

Implements RTT::types::ValueFactory.

Definition at line 54 of file TemplateValueFactory.hpp.

template<class T>
base::AttributeBase* RTT::types::TemplateValueFactory< T >::buildAttribute ( std::string  name,
base::DataSourceBase::shared_ptr  source 
) const
inlinevirtual

Build an Attribute of this type.

Implements RTT::types::ValueFactory.

Definition at line 40 of file TemplateValueFactory.hpp.

template<class T>
base::AttributeBase* RTT::types::TemplateValueFactory< T >::buildConstant ( std::string  name,
base::DataSourceBase::shared_ptr   
) const
inlinevirtual

Build a non modifyable instance of this type.

Parameters
sizehintFor variable size instances, use it to hint the size of the instance.

Implements RTT::types::ValueFactory.

Definition at line 20 of file TemplateValueFactory.hpp.

AttributeBase * RTT::ValueFactory::buildConstant ( std::string  name,
base::DataSourceBase::shared_ptr  dsb,
int  sizehint 
) const
virtualinherited

Build a non modifyable instance of this type.

Parameters
sizehintFor variable size instances, use it to hint the size of the instance.

Definition at line 14 of file ValueFactory.cpp.

template<class T>
virtual base::PropertyBase* RTT::types::TemplateValueFactory< T >::buildProperty ( const std::string &  name,
const std::string &  desc,
base::DataSourceBase::shared_ptr  source = 0 
) const
inlinevirtual

Build a Property of this type.

Implements RTT::types::ValueFactory.

Definition at line 74 of file TemplateValueFactory.hpp.

template<class T>
virtual base::DataSourceBase::shared_ptr RTT::types::TemplateValueFactory< T >::buildReference ( void *  ptr) const
inlinevirtual

Build a internal::ReferenceDataSource of this type, pointing to the given pointer.

Implements RTT::types::ValueFactory.

Definition at line 90 of file TemplateValueFactory.hpp.

template<class T>
virtual base::DataSourceBase::shared_ptr RTT::types::TemplateValueFactory< T >::buildValue ( ) const
inlinevirtual

Build a internal::ValueDataSource of this type.

Implements RTT::types::ValueFactory.

Definition at line 87 of file TemplateValueFactory.hpp.

template<class T>
base::AttributeBase* RTT::types::TemplateValueFactory< T >::buildVariable ( std::string  name) const
inlinevirtual

Build a non modifyable instance of this type.

Parameters
sizehintFor variable size instances, use it to hint the size of the instance.

Implements RTT::types::ValueFactory.

Definition at line 33 of file TemplateValueFactory.hpp.

AttributeBase * RTT::ValueFactory::buildVariable ( std::string  name,
int  sizehint 
) const
virtualinherited

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