
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\build\newproj\include.ppc\tssitr.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-92 Apple Computer, Inc.  All rights reserved.
 * 
 * CLASS_NAME: somf_TSortedSequenceIterator
 * 
 * DESCRIPTION: An iterator for TSortedSeqence that will iterate over all of
 *              the objects in a sorted sequence.
 * 
 */


#ifndef SOM_somf_TSortedSequenceIterator_h
#define SOM_somf_TSortedSequenceIterator_h


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

#include <tss.h>
#include <morder.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_TSortedSequenceIterator
#define somf_TSortedSequenceIterator SOMObject
#endif
#include <tseqitr.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_TSortedSequence
    #define somf_TSortedSequence SOMObject
#endif /* somf_TSortedSequence */
#ifndef somf_TSortedSequenceNode
    #define somf_TSortedSequenceNode SOMObject
#endif /* somf_TSortedSequenceNode */
#ifndef somf_MOrderableCollectible
    #define somf_MOrderableCollectible SOMObject
#endif /* somf_MOrderableCollectible */

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

#define somf_TSortedSequenceIterator_MajorVersion 2
#define somf_TSortedSequenceIterator_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define somf_TSortedSequenceIteratorNewClass c
#pragma linkage(c, system)
#define somf_TSortedSequenceIteratorClassData d
#define somf_TSortedSequenceIteratorCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define somf_TSortedSequenceIterator_classObj somf_TSortedSequenceIteratorClassData.classObject
#define _somf_TSortedSequenceIterator somf_TSortedSequenceIterator_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct somf_TSortedSequenceIteratorClassDataStructure {
	SOMClass *classObject;
	somMToken somfStartHere;
	somMToken somfTSortedSequenceIteratorInit;
} SOMDLINK somf_TSortedSequenceIteratorClassData;

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

/*
 * New and Renew macros for somf_TSortedSequenceIterator
 */
#define somf_TSortedSequenceIteratorNew() \
   (_somNew(_somf_TSortedSequenceIterator ? _somf_TSortedSequenceIterator : somf_TSortedSequenceIteratorNewClass(somf_TSortedSequenceIterator_MajorVersion, somf_TSortedSequenceIterator_MinorVersion)))
#define somf_TSortedSequenceIteratorRenew(buf) \
   (_somRenew(_somf_TSortedSequenceIterator ? _somf_TSortedSequenceIterator : somf_TSortedSequenceIteratorNewClass(somf_TSortedSequenceIterator_MajorVersion, somf_TSortedSequenceIterator_MinorVersion), buf))

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

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

/*
 * Override method: somfLast
 */
#define somf_TSortedSequenceIterator_somfLast(somSelf,ev) \
	somf_TSequenceIterator_somfLast(somSelf,ev)

/*
 * Override method: somfPrevious
 */
#define somf_TSortedSequenceIterator_somfPrevious(somSelf,ev) \
	somf_TSequenceIterator_somfPrevious(somSelf,ev)

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

/*
 * New Method: somfTSortedSequenceIteratorInit
 */
typedef somf_TSortedSequenceIterator*   SOMLINK somTP_somf_TSortedSequenceIterator_somfTSortedSequenceIteratorInit(somf_TSortedSequenceIterator *somSelf, Environment *ev, 
		somf_TSortedSequence* h);
#pragma linkage(somTP_somf_TSortedSequenceIterator_somfTSortedSequenceIteratorInit, system)
typedef somTP_somf_TSortedSequenceIterator_somfTSortedSequenceIteratorInit *somTD_somf_TSortedSequenceIterator_somfTSortedSequenceIteratorInit;
#define somMD_somf_TSortedSequenceIterator_somfTSortedSequenceIteratorInit "::somf_TSortedSequenceIterator::somfTSortedSequenceIteratorInit"
#define somf_TSortedSequenceIterator_somfTSortedSequenceIteratorInit(somSelf,ev,h) \
    (SOM_Resolve(somSelf, somf_TSortedSequenceIterator, somfTSortedSequenceIteratorInit) \
	(somSelf,ev,h))
#ifndef SOMGD_somfTSortedSequenceIteratorInit
    #if (defined(_somfTSortedSequenceIteratorInit) || defined(__somfTSortedSequenceIteratorInit))
        #undef _somfTSortedSequenceIteratorInit
        #undef __somfTSortedSequenceIteratorInit
        #define SOMGD_somfTSortedSequenceIteratorInit 1
    #else
        #define _somfTSortedSequenceIteratorInit somf_TSortedSequenceIterator_somfTSortedSequenceIteratorInit
    #endif /* _somfTSortedSequenceIteratorInit */
#endif /* SOMGD_somfTSortedSequenceIteratorInit */

/*
 * New Method: somfStartHere
 */
typedef somf_MOrderableCollectible*   SOMLINK somTP_somf_TSortedSequenceIterator_somfStartHere(somf_TSortedSequenceIterator *somSelf, Environment *ev, 
		somf_MOrderableCollectible* obj);
#pragma linkage(somTP_somf_TSortedSequenceIterator_somfStartHere, system)
typedef somTP_somf_TSortedSequenceIterator_somfStartHere *somTD_somf_TSortedSequenceIterator_somfStartHere;
#define somMD_somf_TSortedSequenceIterator_somfStartHere "::somf_TSortedSequenceIterator::somfStartHere"
#define somf_TSortedSequenceIterator_somfStartHere(somSelf,ev,obj) \
    (SOM_Resolve(somSelf, somf_TSortedSequenceIterator, somfStartHere) \
	(somSelf,ev,obj))
#ifndef SOMGD_somfStartHere
    #if (defined(_somfStartHere) || defined(__somfStartHere))
        #undef _somfStartHere
        #undef __somfStartHere
        #define SOMGD_somfStartHere 1
    #else
        #define _somfStartHere somf_TSortedSequenceIterator_somfStartHere
    #endif /* _somfStartHere */
#endif /* SOMGD_somfStartHere */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define somf_TSortedSequenceIterator_somDefaultInit SOMObject_somDefaultInit
#define somf_TSortedSequenceIterator_somDestruct SOMObject_somDestruct
#define somf_TSortedSequenceIterator_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define somf_TSortedSequenceIterator_somDefaultAssign SOMObject_somDefaultAssign
#define somf_TSortedSequenceIterator_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define somf_TSortedSequenceIterator_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define somf_TSortedSequenceIterator_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define somf_TSortedSequenceIterator_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define somf_TSortedSequenceIterator_somDefaultVAssign SOMObject_somDefaultVAssign
#define somf_TSortedSequenceIterator_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define somf_TSortedSequenceIterator_somInit SOMObject_somInit
#define somf_TSortedSequenceIterator_somFree SOMObject_somFree
#define somf_TSortedSequenceIterator_somUninit SOMObject_somUninit
#define somf_TSortedSequenceIterator_somGetClass SOMObject_somGetClass
#define somf_TSortedSequenceIterator_somGetClassName SOMObject_somGetClassName
#define somf_TSortedSequenceIterator_somGetSize SOMObject_somGetSize
#define somf_TSortedSequenceIterator_somIsA SOMObject_somIsA
#define somf_TSortedSequenceIterator_somIsInstanceOf SOMObject_somIsInstanceOf
#define somf_TSortedSequenceIterator_somRespondsTo SOMObject_somRespondsTo
#define somf_TSortedSequenceIterator_somDispatch SOMObject_somDispatch
#define somf_TSortedSequenceIterator_somClassDispatch SOMObject_somClassDispatch
#define somf_TSortedSequenceIterator_somCastObj SOMObject_somCastObj
#define somf_TSortedSequenceIterator_somResetObj SOMObject_somResetObj
#define somf_TSortedSequenceIterator_somPrintSelf SOMObject_somPrintSelf
#define somf_TSortedSequenceIterator_somDumpSelf SOMObject_somDumpSelf
#define somf_TSortedSequenceIterator_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_somf_TSortedSequenceIterator_h */
