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

  1. //#  @(#) 2.10 src/somuc/tpllitr.idl, somuc, som2.1 12/26/95 15:39:15 [7/30/96 14:50:07]
  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_TPrimitiveLinkedListIterator
  18.  *
  19.  * DESCRIPTION: An iterator for somf_TPrimitiveLinkedList that will iterate over
  20.  *              all of the objects in a primitive linked list.
  21.  *
  22.  *
  23.  */
  24.  
  25. #ifndef TPLLItr_idl
  26. #define TPLLItr_idl
  27.  
  28. #include <somobj.idl>
  29.  
  30. interface somf_TPrimitiveLinkedList;
  31. interface somf_MLinkable;
  32.  
  33. interface somf_TPrimitiveLinkedListIterator : SOMObject
  34. {
  35.   somf_TPrimitiveLinkedListIterator somfTPrimitiveLinkedListIteratorInit(in somf_TPrimitiveLinkedList list);
  36.  
  37.   // Initialize somf_TPrimitiveLinkedListIterator using somf_TPrimitiveLinkedList list.
  38.   //#   TPrimitiveLinkedListIterator(TPrimitiveLinkedList* list);
  39.  
  40.   somf_MLinkable somfFirst();
  41.  
  42.   // Reset the iterator and return the first element of the list.
  43.   //#   MLinkable* First();
  44.  
  45.   somf_MLinkable somfNext();
  46.  
  47.   // Retrieve the next object in the list and return it.
  48.   //#   MLinkable* Next();
  49.  
  50.   somf_MLinkable somfLast();
  51.  
  52.   // Retrieve the last object in the list and return it.
  53.   //#   MLinkable* Last();
  54.  
  55.   somf_MLinkable somfPrevious();
  56.  
  57.   // Retrieve the previous object in the list and return it.
  58.   //#   MLinkable* Previous();
  59.  
  60.  
  61.  
  62. #ifdef __SOMIDL__
  63.   implementation {
  64.  
  65.     releaseorder: somfFirst,somfNext,somfLast,somfPrevious,
  66.           somfTPrimitiveLinkedListIteratorInit;
  67.  
  68.     //# Class Modifiers
  69.     majorversion = 2;
  70.     minorversion = 1;
  71.     filestem = tpllitr;
  72.     dllname = "somuc.dll";
  73.  
  74.  
  75.     passthru C_xh_after =  ""
  76. "#include <mlink.xh>"
  77. "#include <tpll.xh>";
  78.  
  79.     passthru C_h_after =  ""
  80. "#include <mlink.h>"
  81. "#include <tpll.h>";
  82.  
  83.     //# Internal Instance Variables
  84.     somf_TPrimitiveLinkedList fList;
  85.     somf_MLinkable fCurrent;
  86.     somf_MLinkable fSentinel;
  87.  
  88.     //# Method Modifiers
  89.     somUninit: override;
  90.     somfTPrimitiveLinkedListIteratorInit: nooverride;
  91.  
  92.     //# Data Modifiers
  93.  
  94.   };
  95. #endif /* __SOMIDL__ */
  96. };
  97.  
  98. #endif  /* TPLLItr_idl */
  99.