A class which provides unprotected (not thread-safe) access to one typed element of data. More...
#include <DataObjectUnSync.hpp>

Public Member Functions | |
| virtual void | clear () |
| virtual bool | data_sample (param_t sample, bool reset) |
| virtual value_t | data_sample () const |
| DataObjectUnSync () | |
| DataObjectUnSync (param_t initial_value) | |
| virtual FlowStatus | Get (reference_t pull, bool copy_old_data=true) const |
| virtual value_t | Get () const |
| virtual bool | Set (param_t push) |
Public Member Functions inherited from RTT::base::DataObjectInterface< T > | |
| DataObjectInterface () | |
| virtual | ~DataObjectInterface () |
Public Member Functions inherited from RTT::base::DataObjectBase | |
| virtual | ~DataObjectBase () |
Private Types | |
| typedef DataObjectInterface< T >::param_t | param_t |
| typedef DataObjectInterface< T >::reference_t | reference_t |
| typedef DataObjectInterface< T >::value_t | value_t |
Private Attributes | |
| value_t | data |
| bool | initialized |
| FlowStatus | status |
Additional Inherited Members | |
Public Types inherited from RTT::base::DataObjectInterface< T > | |
| typedef boost::call_traits< T >::param_type | param_t |
| typedef boost::call_traits< T >::reference | reference_t |
| typedef boost::shared_ptr< DataObjectInterface< T > > | shared_ptr |
| typedef T | value_t |
A class which provides unprotected (not thread-safe) access to one typed element of data.
Definition at line 55 of file DataObjectUnSync.hpp.
|
private |
Definition at line 60 of file DataObjectUnSync.hpp.
|
private |
Definition at line 59 of file DataObjectUnSync.hpp.
|
private |
Definition at line 58 of file DataObjectUnSync.hpp.
|
inline |
Construct an uninitialized DataObjectUnSync.
Definition at line 74 of file DataObjectUnSync.hpp.
|
inline |
Construct a DataObjectUnSync with initial value.
Definition at line 80 of file DataObjectUnSync.hpp.
|
inlinevirtual |
Clears any data stored by this data object, so that any subsequent Get() without a new Set() will return NoData.
Implements RTT::base::DataObjectInterface< T >.
Definition at line 124 of file DataObjectUnSync.hpp.
|
inlinevirtual |
Provides a data sample to initialize this data object. As such enough storage space can be allocated before the actual writing begins.
| sample | the data sample |
| reset | enforce reinitialization even if this operation clears the stored data. |
Implements RTT::base::DataObjectInterface< T >.
Definition at line 106 of file DataObjectUnSync.hpp.
|
inlinevirtual |
Reads back a data sample.
Implements RTT::base::DataObjectInterface< T >.
Definition at line 119 of file DataObjectUnSync.hpp.
|
inlinevirtual |
Get a copy of the Data of this data object.
| pull | A copy of the data. |
| copy_old_data | If true, also copy the data if the data object has not been updated since the last call. |
Implements RTT::base::DataObjectInterface< T >.
Definition at line 83 of file DataObjectUnSync.hpp.
|
inlinevirtual |
Get a copy of the data of this data object.
Implements RTT::base::DataObjectInterface< T >.
Definition at line 94 of file DataObjectUnSync.hpp.
|
inlinevirtual |
Set the data to a certain value.
| push | The data which must be set. |
Implements RTT::base::DataObjectInterface< T >.
Definition at line 100 of file DataObjectUnSync.hpp.
|
private |
One element of Data.
Definition at line 65 of file DataObjectUnSync.hpp.
|
private |
Definition at line 68 of file DataObjectUnSync.hpp.
|
mutableprivate |
Definition at line 67 of file DataObjectUnSync.hpp.