17 #ifndef STROMX_RUNTIME_CONSTDATAREF_H 18 #define STROMX_RUNTIME_CONSTDATAREF_H 20 #include "stromx/runtime/DataInterface.h" 46 friend class DataRefTest;
68 operator const Data&() {
return *m_data; }
74 bool isNull()
const {
return bool(m_data); }
77 virtual const std::string & type()
const;
78 virtual const std::string & package()
const;
82 virtual Data* clone()
const;
88 std::tr1::shared_ptr<const Data> m_data;
96 template<
typename data_t>
104 #endif // STROMX_RUNTIME_CONSTDATAREF_H A version of an operator or data type.
Definition: Version.h:46
Abstract data object.
Definition: Data.h:53
Definition: VariantHandle.h:34
Reference to a data object.
Definition: DataRef.h:48
ConstDataRef()
Definition: ConstDataRef.h:53
Provides functions to serialize data to strings and files.
Definition: OutputProvider.h:27
Abstract description of a data variant.
Definition: VariantInterface.h:40
Reference to a constant data object.
Definition: ConstDataRef.h:44
Version version()
Returns the version of the stromx runtime library.
Definition: Runtime.cpp:54
The stromx class library.
Definition: AdjustRgbChannels.cpp:29
bool isNull() const
Definition: ConstDataRef.h:74
Common interface of data objects or references to data objects.
Definition: DataInterface.h:32
const data_t & data_cast(ConstDataRef &data)
Definition: ConstDataRef.h:97