A DataObjectInterface implements multi-threaded read/write solutions. More...
#include <DataObjectInterface.hpp>
Public Types | |
typedef T | DataType |
typedef T | DataType |
typedef boost::shared_ptr < DataObjectInterface< T > > | shared_ptr |
typedef boost::shared_ptr < DataObjectInterface< T > > | shared_ptr |
Public Member Functions | |
virtual void | data_sample (const DataType &sample)=0 |
virtual void | data_sample (const DataType &sample)=0 |
DataObjectInterface () | |
DataObjectInterface () | |
virtual DataType | Get () const =0 |
virtual void | Get (DataType &pull) const =0 |
virtual DataType | Get () const =0 |
virtual void | Get (DataType &pull) const =0 |
virtual void | Set (const DataType &push)=0 |
virtual void | Set (const DataType &push)=0 |
virtual | ~DataObjectInterface () |
virtual | ~DataObjectInterface () |
A DataObjectInterface implements multi-threaded read/write solutions.
T | The DataType which can be Get() or Set() with this DataObject. |
Definition at line 56 of file install/include/rtt/base/DataObjectInterface.hpp.
typedef T RTT::base::DataObjectInterface< T >::DataType |
The type of the data.
Reimplemented in RTT::base::DataObject< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObject< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
Definition at line 78 of file rtt/base/DataObjectInterface.hpp.
typedef T RTT::base::DataObjectInterface< T >::DataType |
The type of the data.
Reimplemented in RTT::base::DataObject< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObject< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
Definition at line 78 of file install/include/rtt/base/DataObjectInterface.hpp.
typedef boost::shared_ptr<DataObjectInterface<T> > RTT::base::DataObjectInterface< T >::shared_ptr |
Used for shared_ptr management.
Definition at line 62 of file rtt/base/DataObjectInterface.hpp.
typedef boost::shared_ptr<DataObjectInterface<T> > RTT::base::DataObjectInterface< T >::shared_ptr |
Used for shared_ptr management.
Definition at line 62 of file install/include/rtt/base/DataObjectInterface.hpp.
RTT::base::DataObjectInterface< T >::DataObjectInterface | ( | ) | [inline] |
Create a DataObject which is initially not reference counted.
Definition at line 67 of file install/include/rtt/base/DataObjectInterface.hpp.
virtual RTT::base::DataObjectInterface< T >::~DataObjectInterface | ( | ) | [inline, virtual] |
Destructor.
Definition at line 73 of file install/include/rtt/base/DataObjectInterface.hpp.
RTT::base::DataObjectInterface< T >::DataObjectInterface | ( | ) | [inline] |
Create a DataObject which is initially not reference counted.
Definition at line 67 of file rtt/base/DataObjectInterface.hpp.
virtual RTT::base::DataObjectInterface< T >::~DataObjectInterface | ( | ) | [inline, virtual] |
Destructor.
Definition at line 73 of file rtt/base/DataObjectInterface.hpp.
virtual void RTT::base::DataObjectInterface< T >::data_sample | ( | const DataType & | sample | ) | [pure virtual] |
Provides a data sample to initialize this data object. As such enough storage space can be allocated before the actual writing begins.
sample |
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
virtual void RTT::base::DataObjectInterface< T >::data_sample | ( | const DataType & | sample | ) | [pure virtual] |
Provides a data sample to initialize this data object. As such enough storage space can be allocated before the actual writing begins.
sample |
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
virtual DataType RTT::base::DataObjectInterface< T >::Get | ( | ) | const [pure virtual] |
Get a copy of the data of this data object.
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
virtual void RTT::base::DataObjectInterface< T >::Get | ( | DataType & | pull | ) | const [pure virtual] |
Get a copy of the Data of this data object.
pull | A copy of the data. |
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
virtual DataType RTT::base::DataObjectInterface< T >::Get | ( | ) | const [pure virtual] |
Get a copy of the data of this data object.
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
virtual void RTT::base::DataObjectInterface< T >::Get | ( | DataType & | pull | ) | const [pure virtual] |
Get a copy of the Data of this data object.
pull | A copy of the data. |
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
virtual void RTT::base::DataObjectInterface< T >::Set | ( | const DataType & | push | ) | [pure virtual] |
Set the data to a certain value.
push | The data which must be set. |
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.
virtual void RTT::base::DataObjectInterface< T >::Set | ( | const DataType & | push | ) | [pure virtual] |
Set the data to a certain value.
push | The data which must be set. |
Implemented in RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, RTT::base::DataObjectUnSync< T >, RTT::base::DataObjectLocked< T >, RTT::base::DataObjectLockFree< T >, and RTT::base::DataObjectUnSync< T >.