home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / sampl254.zip / gcc2 / samples / sample5 / Queue.h < prev    next >
Text File  |  1993-11-07  |  433b  |  20 lines

  1.  
  2. // Queue.h - comp.lang.objective-c simple sample Objective-C program
  3.  
  4. #import <objc/Object.h>
  5. #import "Node.h"
  6.  
  7. @interface    Queue : Object
  8. {
  9.     id    head;
  10.     id    tail;
  11.     unsigned    qsize;
  12. }
  13.  
  14.  +        new;        // create a new Queue
  15.  -        empty;        // clear out all contents of the Queue
  16.  -        put: anItem;    // put anItem on the Queue
  17.  -        get;        // return the item on top of the Queue
  18.  - (unsigned)    size;        // tell us the current size of the Queue
  19. @end
  20.