summaryrefslogtreecommitdiffstats
path: root/debian/htdig/htdig-3.2.0b6/htlib/Queue.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-11-05 13:28:23 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-11-05 13:28:23 +0100
commit8c787c3591c1c885b91a54128835b400858c5cca (patch)
treeeca1b776912a305c4d45b3964038278a2fae1ead /debian/htdig/htdig-3.2.0b6/htlib/Queue.h
parentfe188b907cdf30dfdfe0eba9412e7f8749fec158 (diff)
downloadextra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.tar.gz
extra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.zip
DEB htdig: Added to repository.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/htlib/Queue.h')
-rw-r--r--debian/htdig/htdig-3.2.0b6/htlib/Queue.h52
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