
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\build\newproj\include.ppc\tdeqitr.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_TDequeIterator
 * 
 * DESCRIPTION: An iterator for TDeque that will iterate over all of
 *              the objects in a deque.
 * 
 */


#ifndef SOM_somf_TDequeIterator_h
#define SOM_somf_TDequeIterator_h


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

#include <tdeq.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_TDequeIterator
#define somf_TDequeIterator 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_TDeque
    #define somf_TDeque SOMObject
#endif /* somf_TDeque */
#ifndef somf_TDequeLinkable
    #define somf_TDequeLinkable SOMObject
#endif /* somf_TDequeLinkable */

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

#define somf_TDequeIterator_MajorVersion 2
#define somf_TDequeIterator_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define somf_TDequeIteratorNewClass c
#pragma linkage(c, system)
#define somf_TDequeIteratorClassData d
#define somf_TDequeIteratorCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define somf_TDequeIterator_classObj somf_TDequeIteratorClassData.classObject
#define _somf_TDequeIterator somf_TDequeIterator_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct somf_TDequeIteratorClassDataStructure {
	SOMClass *classObject;
	somMToken somfTDequeIteratorInit;
} SOMDLINK somf_TDequeIteratorClassData;

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

/*
 * New and Renew macros for somf_TDequeIterator
 */
#define somf_TDequeIteratorNew() \
   (_somNew(_somf_TDequeIterator ? _somf_TDequeIterator : somf_TDequeIteratorNewClass(somf_TDequeIterator_MajorVersion, somf_TDequeIterator_MinorVersion)))
#define somf_TDequeIteratorRenew(buf) \
   (_somRenew(_somf_TDequeIterator ? _somf_TDequeIterator : somf_TDequeIteratorNewClass(somf_TDequeIterator_MajorVersion, somf_TDequeIterator_MinorVersion), buf))

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

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

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

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

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

/*
 * New Method: somfTDequeIteratorInit
 */
typedef somf_TDequeIterator*   SOMLINK somTP_somf_TDequeIterator_somfTDequeIteratorInit(somf_TDequeIterator *somSelf, Environment *ev, 
		somf_TDeque* h);
#pragma linkage(somTP_somf_TDequeIterator_somfTDequeIteratorInit, system)
typedef somTP_somf_TDequeIterator_somfTDequeIteratorInit *somTD_somf_TDequeIterator_somfTDequeIteratorInit;
#define somMD_somf_TDequeIterator_somfTDequeIteratorInit "::somf_TDequeIterator::somfTDequeIteratorInit"
#define somf_TDequeIterator_somfTDequeIteratorInit(somSelf,ev,h) \
    (SOM_Resolve(somSelf, somf_TDequeIterator, somfTDequeIteratorInit) \
	(somSelf,ev,h))
#ifndef SOMGD_somfTDequeIteratorInit
    #if (defined(_somfTDequeIteratorInit) || defined(__somfTDequeIteratorInit))
        #undef _somfTDequeIteratorInit
        #undef __somfTDequeIteratorInit
        #define SOMGD_somfTDequeIteratorInit 1
    #else
        #define _somfTDequeIteratorInit somf_TDequeIterator_somfTDequeIteratorInit
    #endif /* _somfTDequeIteratorInit */
#endif /* SOMGD_somfTDequeIteratorInit */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define somf_TDequeIterator_somDefaultInit SOMObject_somDefaultInit
#define somf_TDequeIterator_somDestruct SOMObject_somDestruct
#define somf_TDequeIterator_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define somf_TDequeIterator_somDefaultAssign SOMObject_somDefaultAssign
#define somf_TDequeIterator_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define somf_TDequeIterator_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define somf_TDequeIterator_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define somf_TDequeIterator_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define somf_TDequeIterator_somDefaultVAssign SOMObject_somDefaultVAssign
#define somf_TDequeIterator_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define somf_TDequeIterator_somInit SOMObject_somInit
#define somf_TDequeIterator_somFree SOMObject_somFree
#define somf_TDequeIterator_somUninit SOMObject_somUninit
#define somf_TDequeIterator_somGetClass SOMObject_somGetClass
#define somf_TDequeIterator_somGetClassName SOMObject_somGetClassName
#define somf_TDequeIterator_somGetSize SOMObject_somGetSize
#define somf_TDequeIterator_somIsA SOMObject_somIsA
#define somf_TDequeIterator_somIsInstanceOf SOMObject_somIsInstanceOf
#define somf_TDequeIterator_somRespondsTo SOMObject_somRespondsTo
#define somf_TDequeIterator_somDispatch SOMObject_somDispatch
#define somf_TDequeIterator_somClassDispatch SOMObject_somClassDispatch
#define somf_TDequeIterator_somCastObj SOMObject_somCastObj
#define somf_TDequeIterator_somResetObj SOMObject_somResetObj
#define somf_TDequeIterator_somPrintSelf SOMObject_somPrintSelf
#define somf_TDequeIterator_somDumpSelf SOMObject_somDumpSelf
#define somf_TDequeIterator_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_somf_TDequeIterator_h */
