$search
A class which provides unprotected (not thread-safe) access to one typed element of data. More...
#include <DataObjectUnSync.hpp>
Public Types | |
typedef T | DataType |
Public Member Functions | |
virtual T | data_sample () const |
virtual void | data_sample (const DataType &sample) |
DataObjectUnSync (const T &initial_value=T()) | |
virtual DataType | Get () const |
virtual void | Get (DataType &pull) const |
virtual void | Set (const DataType &push) |
Private Attributes | |
T | data |
A class which provides unprotected (not thread-safe) access to one typed element of data.
Definition at line 55 of file DataObjectUnSync.hpp.
typedef T RTT::base::DataObjectUnSync< T >::DataType |
The type of the data.
Reimplemented from RTT::base::DataObjectInterface< T >.
Definition at line 74 of file DataObjectUnSync.hpp.
RTT::base::DataObjectUnSync< T >::DataObjectUnSync | ( | const T & | initial_value = T() |
) | [inline] |
Construct a DataObjectUnSync by name.
_name | The name of this DataObject. |
Definition at line 68 of file DataObjectUnSync.hpp.
virtual T RTT::base::DataObjectUnSync< T >::data_sample | ( | ) | const [inline, virtual] |
Definition at line 86 of file DataObjectUnSync.hpp.
virtual void RTT::base::DataObjectUnSync< T >::data_sample | ( | const DataType & | sample | ) | [inline, virtual] |
Provides a data sample to initialize this data object. As such enough storage space can be allocated before the actual writing begins.
sample |
Implements RTT::base::DataObjectInterface< T >.
Definition at line 82 of file DataObjectUnSync.hpp.
virtual DataType RTT::base::DataObjectUnSync< T >::Get | ( | ) | const [inline, virtual] |
Get a copy of the data of this data object.
Implements RTT::base::DataObjectInterface< T >.
Definition at line 78 of file DataObjectUnSync.hpp.
virtual void RTT::base::DataObjectUnSync< T >::Get | ( | DataType & | pull | ) | const [inline, virtual] |
Get a copy of the Data of this data object.
pull | A copy of the data. |
Implements RTT::base::DataObjectInterface< T >.
Definition at line 76 of file DataObjectUnSync.hpp.
virtual void RTT::base::DataObjectUnSync< T >::Set | ( | const DataType & | push | ) | [inline, virtual] |
Set the data to a certain value.
push | The data which must be set. |
Implements RTT::base::DataObjectInterface< T >.
Definition at line 80 of file DataObjectUnSync.hpp.
T RTT::base::DataObjectUnSync< T >::data [private] |
One element of Data.
Definition at line 61 of file DataObjectUnSync.hpp.