Orocos Real-Time Toolkit
2.8.3
|
Object that may receive a reference to some data by means of a pointer or data source. More...
#include <rtt/internal/Reference.hpp>
Public Member Functions | |
virtual | ~Reference () |
virtual void | setReference (void *ref)=0 |
Sets the reference to a given pointer. More... | |
virtual bool | setReference (base::DataSourceBase::shared_ptr dsb)=0 |
Sets the reference to the data contained in the data source. More... | |
Object that may receive a reference to some data by means of a pointer or data source.
Used by ReferenceDataSource in order to allow to modify the reference after creation of the data source.
Definition at line 15 of file Reference.hpp.
|
inlinevirtual |
Definition at line 18 of file Reference.hpp.
References setReference().
|
pure virtual |
Sets the reference to a given pointer.
The pointer must have the same type as the data referenced. No type checking is done, so make sure you get this right.
Implemented in RTT::internal::ReferenceDataSource< T >, and RTT::internal::ReferenceDataSource< ds_type >.
Referenced by RTT::types::type_discovery::load_a_type(), and ~Reference().
|
pure virtual |
Sets the reference to the data contained in the data source.
dsb | Must be an assignable data source of the same type of the data. The shared pointer is not necessarily stored, so keep track of the lifetime of dsb, that it lives longer than this object. |
Implemented in RTT::internal::ReferenceDataSource< T >, and RTT::internal::ReferenceDataSource< ds_type >.