diff options
author | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2016-01-11 17:08:02 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2016-01-12 14:40:58 +0000 |
commit | db2a90fa9b4f823d37e02545732ff815ca9a1726 (patch) | |
tree | a40bdc88dbaf0d7538ab1c8cfa5f003c65586cf2 /tests/manual/kinectsurface/QtKinectWrapper/OpenNI/Include/XnStackT.h | |
parent | 64f0d4fb353ae2e447483897839d4df8b5b32f54 (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.h | 58 |
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 |