summaryrefslogtreecommitdiffstats
path: root/tests/kinectsurface/QtKinectWrapper/OpenNI/Include/XnQueueT.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-10-20 13:18:59 +0300
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-10-22 10:08:51 +0000
commit31f9c57bc50ae053cfaf039a1dfdb128e2494458 (patch)
tree316138cb73c49877f5a80a8496c2f1b737122fb5 /tests/kinectsurface/QtKinectWrapper/OpenNI/Include/XnQueueT.h
parent4162ddeb02ee41fd4217d7f3d93d45cab3313ba8 (diff)
Fix issues with COIN builds
-Fix miscellaneous compile errors -Move manual tests to manual folder and enable export of autotests -Added widgets requirement -Fixed autotests -Fixed renderer and controller synchronization in QML case -Treat fallback Mesa as ES2 similar to setting AA_UseSoftwareOpenGL Change-Id: If6619733725d079e339bef16262e5ea1450ab20f Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
Diffstat (limited to 'tests/kinectsurface/QtKinectWrapper/OpenNI/Include/XnQueueT.h')
-rw-r--r--tests/kinectsurface/QtKinectWrapper/OpenNI/Include/XnQueueT.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/tests/kinectsurface/QtKinectWrapper/OpenNI/Include/XnQueueT.h b/tests/kinectsurface/QtKinectWrapper/OpenNI/Include/XnQueueT.h
deleted file mode 100644
index 3320d118..00000000
--- a/tests/kinectsurface/QtKinectWrapper/OpenNI/Include/XnQueueT.h
+++ /dev/null
@@ -1,63 +0,0 @@
-#ifndef _XN_QUEUE_T_H_
-#define _XN_QUEUE_T_H_
-
-//---------------------------------------------------------------------------
-// Includes
-//---------------------------------------------------------------------------
-#include <XnListT.h>
-
-//---------------------------------------------------------------------------
-// Code
-//---------------------------------------------------------------------------
-template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T> >
-class XnQueueT : protected XnListT<T, TAlloc>
-{
-public:
- typedef XnListT<T, TAlloc> Base;
-
- XnQueueT() : Base() {}
-
- XnQueueT(const XnQueueT& other) : Base()
- {
- *this = other;
- }
-
- XnQueueT& operator=(const XnQueueT& other)
- {
- Base::operator=(other);
- // no other members
- return *this;
- }
-
- ~XnQueueT() {}
-
- using Base::ConstIterator;
- using Base::IsEmpty;
-
- XnStatus Push(T const& value)
- {
- return Base::AddLast(value);
- }
-
- XnStatus Pop(T& value)
- {
- Iterator it = Begin();
- if (it == End())
- {
- return XN_STATUS_IS_EMPTY;
- }
- value = *it;
- return Base::Remove(it);
- }
-
- T const& Top() const { return *Begin(); }
- T& Top() { return *Begin(); }
-
- using Base::Begin;
- using Base::End;
- using Base::Size;
-};
-
-
-
-#endif // _XN_QUEUE_T_H_ \ No newline at end of file