40 #ifndef CORELIB_DATAOBJECT_UNSYNC_HPP 41 #define CORELIB_DATAOBJECT_UNSYNC_HPP 75 : data(), status(
NoData), initialized(false) {}
81 : data(initial_value), status(
NoData), initialized(true) {}
83 virtual FlowStatus Get( reference_t pull,
bool copy_old_data =
true )
const {
88 }
else if ((status ==
OldData) && copy_old_data) {
94 virtual value_t
Get()
const {
100 virtual bool Set( param_t push ) {
107 if (!initialized || reset) {
virtual value_t Get() const
DataObjectInterface< T >::reference_t reference_t
virtual value_t data_sample() const
DataObjectInterface< T >::value_t value_t
DataObjectUnSync(param_t initial_value)
virtual FlowStatus Get(reference_t pull, bool copy_old_data=true) const
virtual bool Set(param_t push)
A class which provides unprotected (not thread-safe) access to one typed element of data...
boost::call_traits< T >::param_type param_t
virtual bool data_sample(param_t sample, bool reset)
A DataObjectInterface implements multi-threaded read/write solutions.
boost::call_traits< T >::reference reference_t
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
DataObjectInterface< T >::param_t param_t