home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / tsetitr.h < prev    next >
C/C++ Source or Header  |  1999-02-22  |  7KB  |  218 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: tsetitr.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emith: 2.47
  8.  */
  9.  
  10. /*
  11.  *    COMPONENT_NAME: somuc
  12.  * 
  13.  *    ORIGINS: 82, 81, 27
  14.  * 
  15.  * 
  16.  *     25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996
  17.  *    All Rights Reserved
  18.  *    Licensed Materials - Property of IBM
  19.  *    US Government Users Restricted Rights - Use, duplication or
  20.  *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  21.  * 
  22.  *    Copyright ⌐ 1988, 1989 Apple Computer, Inc. All rights reserved.
  23.  * 
  24.  * CLASS_NAME: somf_TSetIterator
  25.  * 
  26.  * DESCRIPTION: An iterator for TSet's that will iterate over all of the objects
  27.  *              in a set.
  28.  * 
  29.  */
  30.  
  31.  
  32. #ifndef SOM_somf_TSetIterator_h
  33. #define SOM_somf_TSetIterator_h
  34.  
  35.  
  36. #include <som.h>
  37.  
  38. /*
  39.  * -- This emitter treats Method Tokens as Thunks by default.
  40.  * -- Use the sc modifier "nothunks" to change this default
  41.  */
  42. #undef somresolve_
  43. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  44.  
  45. /*
  46.  * Define the class name as an object type
  47.  */
  48. #ifndef somf_TSetIterator
  49. #define somf_TSetIterator SOMObject
  50. #endif
  51. #include <titeratr.h>
  52.  
  53. /*
  54.  * Start of bindings for IDL types
  55.  */
  56.  
  57. #ifndef SOMClass
  58.     #define SOMClass SOMObject
  59. #endif /* SOMClass */
  60. #ifndef somf_MCollectible
  61.     #define somf_MCollectible SOMObject
  62. #endif /* somf_MCollectible */
  63. #ifndef somf_TSet
  64.     #define somf_TSet SOMObject
  65. #endif /* somf_TSet */
  66. #ifndef TSAssoc
  67.     #define TSAssoc SOMObject
  68. #endif /* TSAssoc */
  69.  
  70. /*
  71.  * End of bindings for IDL types.
  72.  */
  73.  
  74. /*
  75.  * Passthru lines: File: "C.h", "after"
  76.  */
  77.  
  78. #include <tset.h>
  79. #include <mcollect.h>
  80.  
  81. #define somf_TSetIterator_MajorVersion 2
  82. #define somf_TSetIterator_MinorVersion 1
  83.  
  84. /*
  85.  * External name shortening if required
  86.  */
  87. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  88. #define somf_TSetIteratorNewClass c
  89. #pragma linkage(c, system)
  90. #define somf_TSetIteratorClassData d
  91. #define somf_TSetIteratorCClassData x
  92. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  93. /*--------------Migration------------*/
  94. #define somf_TSetIterator_classObj somf_TSetIteratorClassData.classObject
  95. #define _somf_TSetIterator somf_TSetIterator_classObj
  96.  
  97. /*
  98.  * Declare the class creation procedure
  99.  */
  100. SOMEXTERN SOMClass * SOMLINK somf_TSetIteratorNewClass(integer4 somtmajorVersion,
  101.         integer4 somtminorVersion);
  102. #pragma linkage(somf_TSetIteratorNewClass, system)
  103.  
  104. /*
  105.  * Declare the class data structure
  106.  */
  107. SOMEXTERN struct somf_TSetIteratorClassDataStructure {
  108.     SOMClass *classObject;
  109.     somMToken somfTSetIteratorInit;
  110. } SOMDLINK somf_TSetIteratorClassData;
  111.  
  112. /*
  113.  * Declare the C specific class data structure
  114.  */
  115. SOMEXTERN struct somf_TSetIteratorCClassDataStructure {
  116.     somMethodTabs parentMtab;
  117.     somDToken instanceDataToken;
  118. } SOMDLINK somf_TSetIteratorCClassData;
  119.  
  120. /*
  121.  * New and Renew macros for somf_TSetIterator
  122.  */
  123. #define somf_TSetIteratorNew() \
  124.    ( _somf_TSetIterator ? \
  125.     _somNew(_somf_TSetIterator) \
  126.     : ( somf_TSetIteratorNewClass(\
  127.         somf_TSetIterator_MajorVersion, \
  128.         somf_TSetIterator_MinorVersion),\
  129.        _somNew(_somf_TSetIterator)))
  130. #define somf_TSetIteratorRenew(buf) \
  131.    ( _somf_TSetIterator ? \
  132.     _somRenew(_somf_TSetIterator, buf) \
  133.     : ( somf_TSetIteratorNewClass(\
  134.         somf_TSetIterator_MajorVersion, \
  135.         somf_TSetIterator_MinorVersion),\
  136.        _somRenew(_somf_TSetIterator, buf)))
  137.  
  138. /*
  139.  * Override method: somUninit
  140.  */
  141. #define somf_TSetIterator_somUninit(somSelf) \
  142.     SOMObject_somUninit(somSelf)
  143.  
  144. /*
  145.  * Override method: somfNext
  146.  */
  147. #define somf_TSetIterator_somfNext(somSelf,ev) \
  148.     somf_TIterator_somfNext(somSelf,ev)
  149.  
  150. /*
  151.  * Override method: somfFirst
  152.  */
  153. #define somf_TSetIterator_somfFirst(somSelf,ev) \
  154.     somf_TIterator_somfFirst(somSelf,ev)
  155.  
  156. /*
  157.  * Override method: somfRemove
  158.  */
  159. #define somf_TSetIterator_somfRemove(somSelf,ev) \
  160.     somf_TIterator_somfRemove(somSelf,ev)
  161.  
  162. /*
  163.  * New Method: somfTSetIteratorInit
  164.  */
  165. typedef somf_TSetIterator*   SOMLINK somTP_somf_TSetIterator_somfTSetIteratorInit(somf_TSetIterator *somSelf, Environment *ev, 
  166.         somf_TSet* h);
  167. #pragma linkage(somTP_somf_TSetIterator_somfTSetIteratorInit, system)
  168. typedef somTP_somf_TSetIterator_somfTSetIteratorInit *somTD_somf_TSetIterator_somfTSetIteratorInit;
  169. /*
  170.  *  Initialize somf_TSetIterator using somf_TSet h.
  171.  */
  172. #define somMD_somf_TSetIterator_somfTSetIteratorInit "::somf_TSetIterator::somfTSetIteratorInit"
  173. #define somf_TSetIterator_somfTSetIteratorInit(somSelf,ev,h) \
  174.     (SOM_Resolve(somSelf, somf_TSetIterator, somfTSetIteratorInit) \
  175.     (somSelf,ev,h))
  176. #ifndef SOMGD_somfTSetIteratorInit
  177.     #if (defined(_somfTSetIteratorInit) || defined(__somfTSetIteratorInit))
  178.         #undef _somfTSetIteratorInit
  179.         #undef __somfTSetIteratorInit
  180.         #define SOMGD_somfTSetIteratorInit 1
  181.     #else
  182.         #define _somfTSetIteratorInit somf_TSetIterator_somfTSetIteratorInit
  183.     #endif /* _somfTSetIteratorInit */
  184. #endif /* SOMGD_somfTSetIteratorInit */
  185. #ifndef SOM_DONT_USE_INHERITED_MACROS
  186. #define somf_TSetIterator_somDefaultInit SOMObject_somDefaultInit
  187. #define somf_TSetIterator_somDestruct SOMObject_somDestruct
  188. #define somf_TSetIterator_somDefaultCopyInit SOMObject_somDefaultCopyInit
  189. #define somf_TSetIterator_somDefaultAssign SOMObject_somDefaultAssign
  190. #define somf_TSetIterator_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  191. #define somf_TSetIterator_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  192. #define somf_TSetIterator_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  193. #define somf_TSetIterator_somDefaultConstAssign SOMObject_somDefaultConstAssign
  194. #define somf_TSetIterator_somDefaultVAssign SOMObject_somDefaultVAssign
  195. #define somf_TSetIterator_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  196. #define somf_TSetIterator_somInit SOMObject_somInit
  197. #define somf_TSetIterator_somFree SOMObject_somFree
  198. #define somf_TSetIterator_somGetClass SOMObject_somGetClass
  199. #define somf_TSetIterator_somGetClassName SOMObject_somGetClassName
  200. #define somf_TSetIterator_somGetSize SOMObject_somGetSize
  201. #define somf_TSetIterator_somIsA SOMObject_somIsA
  202. #define somf_TSetIterator_somIsInstanceOf SOMObject_somIsInstanceOf
  203. #define somf_TSetIterator_somRespondsTo SOMObject_somRespondsTo
  204. #define somf_TSetIterator_somDispatch SOMObject_somDispatch
  205. #define somf_TSetIterator_somClassDispatch SOMObject_somClassDispatch
  206. #define somf_TSetIterator_somCastObj SOMObject_somCastObj
  207. #define somf_TSetIterator_somResetObj SOMObject_somResetObj
  208. #define somf_TSetIterator_somDispatchV SOMObject_somDispatchV
  209. #define somf_TSetIterator_somDispatchL SOMObject_somDispatchL
  210. #define somf_TSetIterator_somDispatchA SOMObject_somDispatchA
  211. #define somf_TSetIterator_somDispatchD SOMObject_somDispatchD
  212. #define somf_TSetIterator_somPrintSelf SOMObject_somPrintSelf
  213. #define somf_TSetIterator_somDumpSelf SOMObject_somDumpSelf
  214. #define somf_TSetIterator_somDumpSelfInt SOMObject_somDumpSelfInt
  215. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  216.  
  217. #endif       /* SOM_somf_TSetIterator_h */
  218.