RTT::types::TemplateConstructor< S > Struct Template Reference

#include <TemplateConstructor.hpp>

Inheritance diagram for RTT::types::TemplateConstructor< S >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef boost::function_traits
< S >::arg1_type 
arg1_type
typedef boost::function_traits
< S >::arg1_type 
arg1_type
typedef boost::function_traits
< S >::result_type 
result_type
typedef boost::function_traits
< S >::result_type 
result_type
typedef
internal::create_sequence
< typename
boost::function_types::parameter_types
< S >::type
SequenceFactory
typedef
internal::create_sequence
< typename
boost::function_types::parameter_types
< S >::type
SequenceFactory

Public Member Functions

virtual
base::DataSourceBase::shared_ptr 
build (const std::vector< base::DataSourceBase::shared_ptr > &args) const
virtual
base::DataSourceBase::shared_ptr 
build (const std::vector< base::DataSourceBase::shared_ptr > &args) const
virtual
base::DataSourceBase::shared_ptr 
convert (base::DataSourceBase::shared_ptr arg) const
virtual
base::DataSourceBase::shared_ptr 
convert (base::DataSourceBase::shared_ptr arg) const
template<class FInit >
 TemplateConstructor (FInit f, bool autom)
template<class FInit >
 TemplateConstructor (FInit f, bool autom)

Public Attributes

bool automatic
boost::function< S > ff

Detailed Description

template<class S>
struct RTT::types::TemplateConstructor< S >

The constructor classes allow to define type constructors or type conversions (convert type B from type A).

See also:
TypeInfo::addConstructor()
Parameters:
S The function Signature, should at least have one argument and must return non-void.

Definition at line 63 of file install/include/rtt/types/TemplateConstructor.hpp.


Member Typedef Documentation

template<class S>
typedef boost::function_traits<S>::arg1_type RTT::types::TemplateConstructor< S >::arg1_type

Definition at line 67 of file rtt/types/TemplateConstructor.hpp.

template<class S>
typedef boost::function_traits<S>::arg1_type RTT::types::TemplateConstructor< S >::arg1_type
template<class S>
typedef boost::function_traits<S>::result_type RTT::types::TemplateConstructor< S >::result_type

Definition at line 66 of file rtt/types/TemplateConstructor.hpp.

template<class S>
typedef boost::function_traits<S>::result_type RTT::types::TemplateConstructor< S >::result_type
template<class S>
typedef internal::create_sequence<typename boost::function_types::parameter_types<S>::type> RTT::types::TemplateConstructor< S >::SequenceFactory

Definition at line 68 of file rtt/types/TemplateConstructor.hpp.

template<class S>
typedef internal::create_sequence<typename boost::function_types::parameter_types<S>::type> RTT::types::TemplateConstructor< S >::SequenceFactory

Constructor & Destructor Documentation

template<class S>
template<class FInit >
RTT::types::TemplateConstructor< S >::TemplateConstructor ( FInit  f,
bool  autom 
) [inline]
template<class S>
template<class FInit >
RTT::types::TemplateConstructor< S >::TemplateConstructor ( FInit  f,
bool  autom 
) [inline]

Definition at line 74 of file rtt/types/TemplateConstructor.hpp.


Member Function Documentation

template<class S>
virtual base::DataSourceBase::shared_ptr RTT::types::TemplateConstructor< S >::build ( const std::vector< base::DataSourceBase::shared_ptr > &  args  )  const [inline, virtual]

Inspect args and return a type constructed with these args if such a constructor exists.

Implements RTT::types::TypeBuilder.

Definition at line 78 of file rtt/types/TemplateConstructor.hpp.

template<class S>
virtual base::DataSourceBase::shared_ptr RTT::types::TemplateConstructor< S >::build ( const std::vector< base::DataSourceBase::shared_ptr > &  args  )  const [inline, virtual]

Inspect args and return a type constructed with these args if such a constructor exists.

Implements RTT::types::TypeBuilder.

Definition at line 78 of file install/include/rtt/types/TemplateConstructor.hpp.

template<class S>
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::TypeBuilder.

Definition at line 89 of file rtt/types/TemplateConstructor.hpp.

template<class S>
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::TypeBuilder.

Definition at line 89 of file install/include/rtt/types/TemplateConstructor.hpp.


Member Data Documentation

template<class S>
bool RTT::types::TemplateConstructor< S >::automatic
template<class S>
boost::function< S > RTT::types::TemplateConstructor< S >::ff

The documentation for this struct 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 Jan 11 09:50:18 2013