1 #ifndef SEQUENCECONSTRUCTOR_HPP_ 2 #define SEQUENCECONSTRUCTOR_HPP_ 5 #include "../internal/DataSources.hpp" 19 mutable boost::shared_ptr<T>
ptr;
69 for (
unsigned int i = 0; i != args.size(); ++i)
90 struct sequence_ctor2:
public std::binary_function<int, typename T::value_type,
93 typedef const T& (
Signature)(
int,
typename T::value_type);
94 mutable boost::shared_ptr<T>
ptr;
99 const T&
operator()(
int size,
typename T::value_type value)
const 102 ptr->assign(size, value);
DataSource is a base class representing a generic way to read data of type T.
result_type operator()(const std::vector< T > &args) const
boost::shared_ptr< T > ptr
Sequence constructor which takes the number of elements in the sequence.
Constructs a sequence from the number of elements and a prototype element for these elements...
internal::NArityDataSource< sequence_varargs_ctor< T > > type
const T & operator()(int size, typename T::value_type value) const
const T &( Signature)(int)
const T &( Signature)(int, typename T::value_type)
boost::intrusive_ptr< NArityDataSource< function > > shared_ptr
const std::vector< T > & result_type
const T & operator()(int size) const
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.
boost::intrusive_ptr< DataSource< T > > shared_ptr
See NArityDataSource which requires a function object like this one.
Helper DataSource for constructing sequences with a variable number of parameters.
This interface describes how constructors work.
boost::intrusive_ptr< DataSourceBase > shared_ptr
Use this type to store a pointer to a DataSourceBase.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
boost::shared_ptr< T > ptr
A generic N-arity composite DataSource.
Constructs an sequence with n elements, which are given upon construction time.