1 #ifndef DATAOBJECTDATASOURCE_HPP_ 2 #define DATAOBJECTDATASOURCE_HPP_ 5 #include "../base/DataObjectInterface.hpp" 24 typedef boost::intrusive_ptr<DataObjectDataSource<T> >
shared_ptr;
33 mobject->
Get( mcopy );
DataSource is a base class representing a generic way to read data of type T.
virtual DataObjectDataSource< T > * clone() const
Return a shallow clone of this DataSource.
boost::shared_ptr< DataObjectInterface< T > > shared_ptr
Used for shared_ptr management.
bool evaluate() const
Force an evaluation of the DataSourceBase.
virtual DataObjectDataSource< T > * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
Create a deep copy of this internal::DataSource, unless it is already cloned.
virtual void reset()
Reset the data to initial values.
boost::intrusive_ptr< DataObjectDataSource< T > > shared_ptr
DataSource< T >::const_reference_t rvalue() const
Get a const reference to the value of this DataSource.
DataObjectDataSource(typename base::DataObjectInterface< T >::shared_ptr obj)
virtual void Get(DataType &pull) const =0
Get a copy of the Data of this data object.
virtual ~DataObjectDataSource()
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
details::GetConstRef< T >::type const_reference_t
A DataSource which is used to read a DataObject.
DataSource< T >::result_t value() const
Return the result of the last evaluate() function.