
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\build\newproj\include.ppc\thashitr.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith: 2.41
 */

/*
 *    COMPONENT_NAME: somuc
 * 
 *    ORIGINS: 82, 81, 27
 * 
 * 
 *    10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
 *    All Rights Reserved
 *    Licensed Materials - Property of IBM
 *    US Government Users Restricted Rights - Use, duplication or
 *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 * 
 *    Copyright © 1988, 1989 Apple Computer, Inc. All rights reserved.
 * 
 * CLASS_NAME: somf_THashTableIterator
 * 
 * DESCRIPTION: An iterator for somf_THashTable that will iterate over all of the
 *              objects in a hash table
 * 
 * 
 */


#ifndef SOM_somf_THashTableIterator_h
#define SOM_somf_THashTableIterator_h


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))

/*
 * Define the class name as an object type
 */
#ifndef somf_THashTableIterator
#define somf_THashTableIterator SOMObject
#endif
#include <titeratr.h>

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef somf_MCollectible
    #define somf_MCollectible SOMObject
#endif /* somf_MCollectible */
#ifndef somf_THashTable
    #define somf_THashTable SOMObject
#endif /* somf_THashTable */
#ifndef somf_TAssoc
    #define somf_TAssoc SOMObject
#endif /* somf_TAssoc */
#ifndef THAssoc
    #define THAssoc SOMObject
#endif /* THAssoc */

/*
 * End of bindings for IDL types.
 */

/*
 * Passthru lines: File: "C.h", "after"
 */

#include <mcollect.h>
#include <thash.h>

#define somf_THashTableIterator_MajorVersion 2
#define somf_THashTableIterator_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define somf_THashTableIteratorNewClass c
#pragma linkage(c, system)
#define somf_THashTableIteratorClassData d
#define somf_THashTableIteratorCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define somf_THashTableIterator_classObj somf_THashTableIteratorClassData.classObject
#define _somf_THashTableIterator somf_THashTableIterator_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK somf_THashTableIteratorNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);
#pragma linkage(somf_THashTableIteratorNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct somf_THashTableIteratorClassDataStructure {
	SOMClass *classObject;
	somMToken somfTHashTableIteratorInit;
} SOMDLINK somf_THashTableIteratorClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct somf_THashTableIteratorCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK somf_THashTableIteratorCClassData;

/*
 * New and Renew macros for somf_THashTableIterator
 */
#define somf_THashTableIteratorNew() \
   (_somNew(_somf_THashTableIterator ? _somf_THashTableIterator : somf_THashTableIteratorNewClass(somf_THashTableIterator_MajorVersion, somf_THashTableIterator_MinorVersion)))
#define somf_THashTableIteratorRenew(buf) \
   (_somRenew(_somf_THashTableIterator ? _somf_THashTableIterator : somf_THashTableIteratorNewClass(somf_THashTableIterator_MajorVersion, somf_THashTableIterator_MinorVersion), buf))

/*
 * Override method: somInit
 */
#define somf_THashTableIterator_somInit(somSelf) \
	SOMObject_somInit(somSelf)

/*
 * Override method: somUninit
 */
#define somf_THashTableIterator_somUninit(somSelf) \
	SOMObject_somUninit(somSelf)

/*
 * Override method: somfNext
 */
#define somf_THashTableIterator_somfNext(somSelf,ev) \
	somf_TIterator_somfNext(somSelf,ev)

/*
 * Override method: somfFirst
 */
#define somf_THashTableIterator_somfFirst(somSelf,ev) \
	somf_TIterator_somfFirst(somSelf,ev)

/*
 * Override method: somfRemove
 */
#define somf_THashTableIterator_somfRemove(somSelf,ev) \
	somf_TIterator_somfRemove(somSelf,ev)

/*
 * New Method: somfTHashTableIteratorInit
 */
typedef somf_THashTableIterator*   SOMLINK somTP_somf_THashTableIterator_somfTHashTableIteratorInit(somf_THashTableIterator *somSelf, Environment *ev, 
		somf_THashTable* h);
#pragma linkage(somTP_somf_THashTableIterator_somfTHashTableIteratorInit, system)
typedef somTP_somf_THashTableIterator_somfTHashTableIteratorInit *somTD_somf_THashTableIterator_somfTHashTableIteratorInit;
#define somMD_somf_THashTableIterator_somfTHashTableIteratorInit "::somf_THashTableIterator::somfTHashTableIteratorInit"
#define somf_THashTableIterator_somfTHashTableIteratorInit(somSelf,ev,h) \
    (SOM_Resolve(somSelf, somf_THashTableIterator, somfTHashTableIteratorInit) \
	(somSelf,ev,h))
#ifndef SOMGD_somfTHashTableIteratorInit
    #if (defined(_somfTHashTableIteratorInit) || defined(__somfTHashTableIteratorInit))
        #undef _somfTHashTableIteratorInit
        #undef __somfTHashTableIteratorInit
        #define SOMGD_somfTHashTableIteratorInit 1
    #else
        #define _somfTHashTableIteratorInit somf_THashTableIterator_somfTHashTableIteratorInit
    #endif /* _somfTHashTableIteratorInit */
#endif /* SOMGD_somfTHashTableIteratorInit */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define somf_THashTableIterator_somDefaultInit SOMObject_somDefaultInit
#define somf_THashTableIterator_somDestruct SOMObject_somDestruct
#define somf_THashTableIterator_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define somf_THashTableIterator_somDefaultAssign SOMObject_somDefaultAssign
#define somf_THashTableIterator_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define somf_THashTableIterator_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define somf_THashTableIterator_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define somf_THashTableIterator_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define somf_THashTableIterator_somDefaultVAssign SOMObject_somDefaultVAssign
#define somf_THashTableIterator_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define somf_THashTableIterator_somFree SOMObject_somFree
#define somf_THashTableIterator_somGetClass SOMObject_somGetClass
#define somf_THashTableIterator_somGetClassName SOMObject_somGetClassName
#define somf_THashTableIterator_somGetSize SOMObject_somGetSize
#define somf_THashTableIterator_somIsA SOMObject_somIsA
#define somf_THashTableIterator_somIsInstanceOf SOMObject_somIsInstanceOf
#define somf_THashTableIterator_somRespondsTo SOMObject_somRespondsTo
#define somf_THashTableIterator_somDispatch SOMObject_somDispatch
#define somf_THashTableIterator_somClassDispatch SOMObject_somClassDispatch
#define somf_THashTableIterator_somCastObj SOMObject_somCastObj
#define somf_THashTableIterator_somResetObj SOMObject_somResetObj
#define somf_THashTableIterator_somPrintSelf SOMObject_somPrintSelf
#define somf_THashTableIterator_somDumpSelf SOMObject_somDumpSelf
#define somf_THashTableIterator_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_somf_THashTableIterator_h */
