summaryrefslogtreecommitdiffstats
path: root/tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2016-01-11 17:08:02 +0200
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2016-01-13 09:36:43 +0000
commit6e7fa62347dde5592e8c0694b2d66c3018d08ba6 (patch)
tree07826fe5943bebff55893faf0fdeb55db8a95947 /tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h
parent25fa07daf70b8b00cd6832a9e180dfa517da4b8b (diff)
Remove some manual test apps
Removed - Kinectsurface - Has 3rd party code. - qmlcamera - Ugly mess and kinda pointless. - qmlmultiwindow - Test is not relevant and is buggy. - spectrum - Has 3rd party code. Change-Id: Ic28ffddf9e45f51a5320d4ebd0e2b7b373452cb7 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
Diffstat (limited to 'tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h')
-rw-r--r--tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h b/tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h
deleted file mode 100644
index 2963a5f8..00000000
--- a/tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef _XN_STACK_T_H_
-#define _XN_STACK_T_H_
-
-//---------------------------------------------------------------------------
-// Includes
-//---------------------------------------------------------------------------
-#include "XnListT.h"
-
-//---------------------------------------------------------------------------
-// Code
-//---------------------------------------------------------------------------
-template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T> >
-class XnStackT : protected XnListT<T, TAlloc>
-{
-public:
- typedef XnListT<T, TAlloc> Base;
-
- typedef typename Base::ConstIterator ConstIterator;
-
- XnStackT() : Base() {}
-
- XnStackT(const XnStackT& other) : Base()
- {
- *this = other;
- }
-
- XnStackT& operator=(const XnStackT& other)
- {
- Base::operator=(other);
- // no other members
- return *this;
- }
-
- ~XnStackT() {}
-
- XnBool IsEmpty() const { return Base::IsEmpty(); }
-
- XnStatus Push(T const& value) { return Base::AddFirst(value); }
-
- XnStatus Pop(T& value)
- {
- ConstIterator 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(); }
-
- ConstIterator Begin() const { return Base::Begin(); }
- ConstIterator End() const { return Base::End(); }
-};
-
-#endif // _XN_STACK_T_H_ \ No newline at end of file