|
Orocos Real-Time Toolkit
2.6.0
|
The constructor classes allow to define type constructors or type conversions (convert type B from type A). More...
#include <rtt/types/TemplateConstructor.hpp>
Public Types | |
|
typedef boost::function_traits < S >::result_type | result_type |
|
typedef boost::function_traits < S >::arg1_type | arg1_type |
|
typedef internal::create_sequence < typename boost::function_types::parameter_types < S >::type > | SequenceFactory |
Public Member Functions | |
| template<class FInit > | |
| TemplateConstructor (FInit f, bool autom) | |
|
virtual base::DataSourceBase::shared_ptr | build (const std::vector< base::DataSourceBase::shared_ptr > &args) const |
| Inspect args and return a type constructed with these args if such a constructor exists. | |
| virtual base::DataSourceBase::shared_ptr | convert (base::DataSourceBase::shared_ptr arg) const |
| Automatic type conversion (float->double,... | |
Public Attributes | |
| boost::function< S > | ff |
| bool | automatic |
The constructor classes allow to define type constructors or type conversions (convert type B from type A).
| S | The function Signature, should at least have one argument and must return non-void. |
Definition at line 63 of file TemplateConstructor.hpp.
| virtual base::DataSourceBase::shared_ptr RTT::types::TemplateConstructor< S >::convert | ( | base::DataSourceBase::shared_ptr | arg | ) | const [inline, virtual] |
Automatic type conversion (float->double,...
). Fails by default.
Reimplemented from RTT::types::TypeConstructor.
Definition at line 89 of file TemplateConstructor.hpp.
References RTT::types::TemplateConstructor< S >::build().
1.7.6.1