home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / tpqitr.idl < prev    next >
Text File  |  1999-02-22  |  2KB  |  88 lines

  1. //#  @(#) 2.12 src/somuc/tpqitr.idl, somuc, som2.1 12/26/95 15:39:48 [7/30/96 14:50:08]
  2. //
  3. //   COMPONENT_NAME: somuc
  4. //
  5. //   ORIGINS: 82, 81, 27
  6. //
  7. //
  8. //    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996  
  9. //   All Rights Reserved
  10. //   Licensed Materials - Property of IBM
  11. //   US Government Users Restricted Rights - Use, duplication or
  12. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  13. //
  14. //   Copyright ⌐ 1988, 1989 Apple Computer, Inc. All rights reserved.
  15.  
  16. /*
  17.  * CLASS_NAME: somf_TPriorityQueueIterator
  18.  *
  19.  * DESCRIPTION: An iterator for somf_TPriorityQueue that will iterate over all
  20.  *              of the objects in a TPriorityQueue.
  21.  *
  22.  */
  23. #ifndef TPQItr_idl
  24. #define TPQItr_idl
  25.  
  26. #include "titeratr.idl"
  27. #include "morder.idl"
  28.  
  29. interface somf_TPriorityQueue;
  30.  
  31. interface somf_TPriorityQueueIterator : somf_TIterator
  32. {
  33.   somf_TPriorityQueueIterator somfTPriorityQueueIteratorInit(in somf_TPriorityQueue h);
  34.  
  35.   // Initializes the new TPriorityQueue iterator.
  36.   //# TPriorityQueueIterator(const TPriorityQueue* h);
  37.  
  38.   //# The following methods is not needed in SOM
  39.   //#   ~TPriorityQueueIterator();
  40.  
  41.   //# The following methods will be overridden below:
  42.   //#   virtual MCollectible* Next();
  43.   //#   virtual MCollectible* First();
  44.   //#   virtual void          Remove();
  45.  
  46.  
  47.  
  48. #ifdef __SOMIDL__
  49.   implementation {
  50.  
  51.     releaseorder: somfTPriorityQueueIteratorInit;
  52.  
  53.  
  54.     //# Class Modifiers
  55.     majorversion = 2;
  56.     minorversion = 1;
  57.     filestem = tpqitr;
  58.     dllname = "somuc.dll";
  59.  
  60.  
  61.     passthru C_xh_after =  ""
  62. "#include <tpq.xh>";
  63.  
  64.     passthru C_h_after =  ""
  65. "#include <tpq.h>";
  66.  
  67.     //# Internal Instance Variables
  68.     somf_TPriorityQueue        fHeap;       // current heap
  69.     long                       fCurrent;    // current element we are passing
  70.     boolean                    fDone;       // When we hit the end
  71.     boolean                    fRemovedCurrent;
  72.     unsigned long              fSeed;
  73.     boolean                    fBreakEmInD16;
  74.  
  75.     //# Method Modifiers
  76.     somfNext: override;
  77.     somfFirst: override;
  78.     somfRemove: override;
  79.     somfTPriorityQueueIteratorInit: nooverride;
  80.  
  81.     //# Data Modifiers
  82.  
  83.   };
  84. #endif /* __SOMIDL__ */
  85. };
  86.  
  87. #endif  /* TPQItr_idl */
  88.