diff options
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/htlib/Queue.h')
-rw-r--r-- | debian/htdig/htdig-3.2.0b6/htlib/Queue.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/htlib/Queue.h b/debian/htdig/htdig-3.2.0b6/htlib/Queue.h new file mode 100644 index 00000000..da3066e4 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/htlib/Queue.h @@ -0,0 +1,52 @@ +// +// Queue.h +// +// Queue: This class implements a linked list of objects. It itself is also an +// object +// +// Part of the ht://Dig package <http://www.htdig.org/> +// Copyright (c) 1999-2004 The ht://Dig Group +// For copyright details, see the file COPYING in your distribution +// or the GNU Library General Public License (LGPL) version 2 or later +// <http://www.gnu.org/copyleft/lgpl.html> +// +// $Id: Queue.h,v 1.6 2004/05/28 13:15:21 lha Exp $ +// +#ifndef _Queue_h_ +#define _Queue_h_ + +#include "Object.h" + +class Queue : public Object +{ +public: + // + // Constructors/Destructor + // + Queue(); + ~Queue(); + + // + // Queue access + // + void push(Object *obj); + Object *peek(); + Object *pop(); + int Size() {return size;} + + // + // Queue destruction + // + void destroy(); + +protected: + // + // These variables are to keep track of the linked list + // + void *head; + void *tail; + + int size; +}; + +#endif |