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

  1. //#  @(#) 2.12 src/somuc/thashitr.idl, somuc, som2.1 12/26/95 15:38:30 [7/30/96 14:50:06]
  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_THashTableIterator
  18.  *
  19.  * DESCRIPTION: An iterator for somf_THashTable that will iterate over all of the
  20.  *              objects in a hash table
  21.  *
  22.  *
  23.  */
  24.  
  25. #ifndef THashItr_idl
  26. #define THashItr_idl
  27.  
  28. #include "titeratr.idl"
  29. #include "mcollect.idl"
  30.  
  31. interface somf_THashTable;
  32. interface somf_TAssoc;
  33. interface THAssoc;
  34.  
  35. interface somf_THashTableIterator : somf_TIterator
  36. {
  37.   somf_THashTableIterator somfTHashTableIteratorInit(in somf_THashTable h);
  38.  
  39.   // Initialize somf_THashTableIterator using somf_THashTable h.
  40.   //#    THashTableIterator(const THashTable* h=SOMF_NIL);
  41.  
  42.  
  43.  
  44. #ifdef __SOMIDL__
  45.   implementation {
  46.  
  47.     releaseorder: somfTHashTableIteratorInit;
  48.  
  49.     //# Class Modifiers
  50.     majorversion = 2;
  51.     minorversion = 1;
  52.     filestem = thashitr;
  53.     dllname = "somuc.dll";
  54.  
  55.  
  56.     passthru C_xh_after =  ""
  57. "#include <mcollect.xh>"
  58. "#include <thash.xh>";
  59.  
  60.     passthru C_h_after =  ""
  61. "#include <mcollect.h>"
  62. "#include <thash.h>";
  63.  
  64.     //# Internal Instance Variables
  65.     somf_THashTable fHashTable;   // current somf_THashTable
  66.     long fIndex;                  // current element we are passing
  67.     long fEndTest;
  68.     THAssoc fNextAssoc;
  69.     unsigned long fSeed;
  70.     somf_TAssoc fRetval;
  71.     boolean fBreakEmInD16;
  72.  
  73.     //# Method Modifiers
  74.     somInit: override;
  75.     somUninit: override;
  76.     somfNext: override;
  77.     somfFirst: override;
  78.     somfRemove: override;
  79.     somfTHashTableIteratorInit: nooverride;
  80.  
  81.     //# Data Modifiers
  82.  
  83.   };
  84. #endif /* __SOMIDL__ */
  85. };
  86.  
  87. #endif  /* THashItr_idl */
  88.