40 #ifndef CORELIB_DATAOBJECT_UNSYNC_HPP 41 #define CORELIB_DATAOBJECT_UNSYNC_HPP 69 : data(initial_value) {}
76 virtual void Get( DataType& pull )
const { pull = data; }
78 virtual DataType
Get()
const { DataType cache;
Get(cache);
return cache; }
80 virtual void Set(
const DataType& push ) { data = push; }
virtual DataType Get() const
Get a copy of the data of this data object.
DataObjectUnSync(const T &initial_value=T())
Construct a DataObjectUnSync by name.
A class which provides unprotected (not thread-safe) access to one typed element of data...
virtual void data_sample(const DataType &sample)
Provides a data sample to initialize this data object.
virtual void Set(const DataType &push)
Set the data to a certain value.
A DataObjectInterface implements multi-threaded read/write solutions.
virtual T data_sample() const
T DataType
The type of the data.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual void Get(DataType &pull) const
Get a copy of the Data of this data object.