home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / SOURCE.ZIP / queue.h < prev    next >
C/C++ Source or Header  |  1995-08-27  |  690b  |  36 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: queue.h 1.4 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9.  
  10. #ifndef __QUEUE_H__
  11. #define __QUEUE_H__
  12.  
  13. #include <object.h>
  14. #include <node.h>
  15.  
  16. class TQueue : public TObject
  17. {
  18.      TNode *head;
  19.      TNode *tail;
  20.   public:
  21.      TQueue();
  22.      virtual ~TQueue();
  23.      
  24.      void Enqueue(TObject *obj);
  25.      TObject *Dequeue();
  26.      
  27.      int EmptyQueue();
  28.      
  29.      void ClearQueue();  
  30.      
  31.      virtual const char *getClassName(void);
  32. };
  33.  
  34. #endif
  35.  
  36.