From 1d6d1e8c73193f57a9c98387ea42eb91eb4d21d1 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Fri, 21 Oct 2005 11:56:32 +0000 Subject: only moving to a new directory svn path=/trunk/externals/grh/; revision=3740 --- PDContainer/include/QueueStack.h | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100755 PDContainer/include/QueueStack.h (limited to 'PDContainer/include/QueueStack.h') diff --git a/PDContainer/include/QueueStack.h b/PDContainer/include/QueueStack.h new file mode 100755 index 0000000..eb72408 --- /dev/null +++ b/PDContainer/include/QueueStack.h @@ -0,0 +1,61 @@ +// *********************(c)*2004*********************> +// -holzilib--holzilib--holzilib--holzilib--holzilib-> +// ++++PD-External++by+Georg+Holzmann++grh@gmx.at++++> +// +// PDContainer: +// this is a port of the containers from the C++ STL +// (Standard Template Library) +// for usage see the documentation and PD help files +// for license see readme.txt +// +// HQueueStack.h + +#ifndef _h_queue_stack_h__ +#define _h_queue_stack_h__ + + +#include "include/ContainerBase.h" + + +//--------------------------------------------------- +/* this is the class of the queue, stack and priority queue + */ +template +class QueueStack : public ContainerBase +{ + + private: + + /* Copy Construction is not allowed + */ + QueueStack(const QueueStack &src) + { } + + /* assignement operator is not allowed + */ + const QueueStack& operator = + (const QueueStack&) + { } + + public: + + /* Standard Constructor + * no namespace + */ + QueueStack() + { } + + /* Destructor + */ + virtual ~QueueStack() { } + + /* removes the value from the top of + * the container + */ + virtual void pop() + { this->data_[this->h_namespace_].pop(); } +}; + + + +#endif //_h_queue_stack_h__ -- cgit v1.2.1