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

  1. //#  @(#) 2.12 src/somuc/tdeqitr.idl, somuc, som2.1 12/26/95 15:35:37 [7/30/96 14:50:03]
  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-92 Apple Computer, Inc.  All rights reserved.
  15.  
  16. /*
  17.  * CLASS_NAME: somf_TDequeIterator
  18.  *
  19.  * DESCRIPTION: An iterator for TDeque that will iterate over all of
  20.  *              the objects in a deque.
  21.  *
  22.  */
  23.  
  24. #ifndef TDeqItr_idl
  25. #define TDeqItr_idl
  26.  
  27. #include <tseqitr.idl>
  28. #include <mcollect.idl>
  29.  
  30. interface somf_TDeque;
  31. interface somf_TDequeLinkable;
  32.  
  33. interface somf_TDequeIterator : somf_TSequenceIterator
  34. {
  35.  
  36.   somf_TDequeIterator somfTDequeIteratorInit(in somf_TDeque h);
  37.   // Initializes the new deque iterator.
  38.   //# TDequeIterator(const TDeque* h);
  39.  
  40.  
  41.   //# The following method is not ported since it contains no logic:
  42.   //# ~TDequeIterator();
  43.   //#
  44.   //# The following methods are overridden below:
  45.   //# virtual MCollectible* Next();
  46.   //# virtual MCollectible* First();
  47.   //# virtual MCollectible* Last();
  48.   //# virtual MCollectible* Previous();
  49.   //# virtual void Remove();
  50.  
  51.  
  52.  
  53. #ifdef __SOMIDL__
  54.   implementation {
  55.  
  56.     releaseorder: somfTDequeIteratorInit;
  57.  
  58.     //# Class Modifiers
  59.     majorversion = 2;
  60.     minorversion = 1;
  61.     filestem = tdeqitr;
  62.     dllname = "somuc.dll";
  63.  
  64.     passthru C_xh =     ""
  65. "#include <tdeq.xh>";
  66.  
  67.     passthru C_h =      ""
  68. "#include <tdeq.h>";
  69.  
  70.     //# Internal Instance Variables
  71.     unsigned long      fSeed;
  72.     somf_TDeque          fDeque;
  73.     somf_TDequeLinkable  fNext;
  74.     somf_TDequeLinkable  fCurrent;
  75.     somf_TDequeLinkable  fPrevious;
  76.     somf_TDequeLinkable  fSentinel;
  77.     boolean            fBreakEmInD16;
  78.  
  79.     //# Method Modifiers
  80.     somfFirst: override;
  81.     somfNext: override;
  82.     somfLast: override;
  83.     somfPrevious: override;
  84.     somfRemove: override;
  85.     somfTDequeIteratorInit: nooverride;
  86.  
  87.   };
  88. #endif /* __SOMIDL__ */
  89. };
  90.  
  91. #endif  /* TDeqItr_idl */
  92.