1 /*
2 ** @(#) $Id$
3 **
4 ** W3C Webbot can be found at "http://www.w3.org/Robot/"
5 **
6 ** Copyright �� 1995-1998 World Wide Web Consortium, (Massachusetts
7 ** Institute of Technology, Institut National de Recherche en
8 ** Informatique et en Automatique, Keio University). All Rights
9 ** Reserved. This program is distributed under the W3C's Software
10 ** Intellectual Property License. This program is distributed in the hope
11 ** that it will be useful, but WITHOUT ANY WARRANTY; without even the
12 ** implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 ** PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
14 ** details.
15 **
16 ** Authors:
17 ** JP John Punin
18 **
19 ** History:
20 ** Oct 1998 Written
21 */
22
23 #include "HTQueue.h"
24
HTQueue_new(void)25 HTList * HTQueue_new(void)
26 {
27 return HTList_new();
28 }
29
HTQueue_delete(HTList * me)30 BOOL HTQueue_delete(HTList *me)
31 {
32 return HTList_delete(me);
33 }
34
HTQueue_enqueue(HTList * me,void * newObject)35 BOOL HTQueue_enqueue(HTList *me,void *newObject)
36 {
37 return HTList_addObject(me,newObject);
38 }
HTQueue_append(HTList * me,void * newObject)39 BOOL HTQueue_append(HTList *me,void *newObject)
40 {
41 return HTList_appendObject(me,newObject);
42 }
43
HTQueue_dequeue(HTList * me)44 BOOL HTQueue_dequeue(HTList *me)
45 {
46 return HTList_removeFirstObject(me) ? YES : NO;
47 }
48
HTQueue_isEmpty(HTList * me)49 BOOL HTQueue_isEmpty(HTList *me)
50 {
51 return HTList_isEmpty(me);
52 }
53
HTQueue_headOfQueue(HTList * me)54 void * HTQueue_headOfQueue(HTList *me)
55 {
56 return HTList_firstObject(me);
57 }
58
HTQueue_count(HTList * me)59 int HTQueue_count(HTList *me)
60 {
61 return HTList_count(me);
62 }
63
64