diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-10 08:48:04 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-10 09:57:56 +1000 |
commit | 8e32f7966f95c5ce3f7932fd7c410162f2794a84 (patch) | |
tree | b1bf1ad237776fc0dd69aebb6c627561ef4183f7 /src/opencl/qclworksize.h | |
parent | e0f8e1a59b55f57363fad3c4d1386505a38351a5 (diff) |
Add data stream and debug operators to QCLWorkSize
Diffstat (limited to 'src/opencl/qclworksize.h')
-rw-r--r-- | src/opencl/qclworksize.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/opencl/qclworksize.h b/src/opencl/qclworksize.h index e0c5b7f..290197c 100644 --- a/src/opencl/qclworksize.h +++ b/src/opencl/qclworksize.h @@ -90,6 +90,8 @@ private: size_t m_sizes[3]; }; +Q_DECLARE_TYPEINFO(QCLWorkSize, Q_MOVABLE_TYPE); + inline bool QCLWorkSize::operator==(const QCLWorkSize &other) const { return m_dim == other.m_dim && @@ -106,6 +108,15 @@ inline bool QCLWorkSize::operator!=(const QCLWorkSize &other) const m_sizes[2] != other.m_sizes[2]; } +#ifndef QT_NO_DATASTREAM +Q_CL_EXPORT QDataStream &operator<<(QDataStream &, const QCLWorkSize &); +Q_CL_EXPORT QDataStream &operator>>(QDataStream &, QCLWorkSize &); +#endif + +#ifndef QT_NO_DEBUG_STREAM +Q_CL_EXPORT QDebug operator<<(QDebug, const QCLWorkSize &); +#endif + QT_END_NAMESPACE QT_END_HEADER |