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

  1. //#  @(#) 2.10 src/somuc/tseqitr.idl, somuc, som2.1 12/26/95 15:40:58 [7/30/96 14:50:10]
  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_TSequenceIterator
  18.  *
  19.  * DESCRIPTION: An iterator for TSequences that will iterate over all of
  20.  *              the objects in a sequence.
  21.  *
  22.  */
  23.  
  24. #ifndef TSeqItr_idl
  25. #define TSeqItr_idl
  26.  
  27. #include <titeratr.idl>
  28.  
  29. interface somf_MCollectible;
  30.  
  31. interface somf_TSequenceIterator : somf_TIterator
  32. {
  33.   //# The following method is not ported since it contains no logic:
  34.   //# virtual ~TSequenceIterator();
  35.   //#
  36.   //# The following methods are overridden below:
  37.   //# virtual MCollectible* Next() = 0;
  38.   //# virtual MCollectible* First() = 0;
  39.   //# virtual void Remove() = 0;
  40.  
  41.  
  42.   somf_MCollectible somfLast();
  43.   // Determine the last object in the TSequence.
  44.   //# virtual MCollectible* Last() = 0;
  45.  
  46.  
  47.   somf_MCollectible somfPrevious();
  48.   // Determine the previous object in the TSequence.
  49.   //# virtual MCollectible* Previous() = 0;
  50.  
  51.  
  52.   //# The following method is not ported since it contains no logic:
  53.   //# protected:
  54.   //#   TSequenceIterator();
  55.  
  56.  
  57.  
  58. #ifdef __SOMIDL__
  59.   implementation {
  60.  
  61.     releaseorder: somfLast,somfPrevious;
  62.  
  63.     //# Class Modifiers
  64.     majorversion = 2;
  65.     minorversion = 1;
  66.     filestem = tseqitr;
  67.     dllname = "somuc.dll";
  68.  
  69.     passthru C_xh =     ""
  70. "#include <mcollect.xh>";
  71.  
  72.     passthru C_h =      ""
  73. "#include <mcollect.h>";
  74.  
  75.  
  76.     //# Method Modifiers
  77.     somfFirst: override;
  78.     somfNext: override;
  79.     somfRemove: override;
  80.  
  81.   };
  82. #endif /* __SOMIDL__ */
  83. };
  84.  
  85. #endif  /* TSeqItr_idl */
  86.