
/*
 * This file was generated by the SOM Compiler.
 * FileName: \odwin\h\CMLKITR.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith.dll: 2.41
 */

/*
 * 
 *  Classes defined in this interface
 * 
 */


#ifndef SOM_CMLinkIterator_h
#define SOM_CMLinkIterator_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 class data structures as resolution macros
 */
#define CMLinkIteratorClassData (*resolve_CMLinkIteratorClassData())
#define CMLinkIteratorCClassData (*resolve_CMLinkIteratorCClassData())

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

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef ODObject
    #define ODObject SOMObject
#endif /* ODObject */
#ifndef ODExtension
    #define ODExtension SOMObject
#endif /* ODExtension */
#ifndef ODLinkIterator
    #define ODLinkIterator SOMObject
#endif /* ODLinkIterator */
#ifndef ODLink
    #define ODLink SOMObject
#endif /* ODLink */
#ifndef CMLinkIterator
    #define CMLinkIterator SOMObject
#endif /* CMLinkIterator */
#ifndef CMDraft
    #define CMDraft SOMObject
#endif /* CMDraft */

/*
 * End of user-defined types.
 */

#define CMLinkIterator_MajorVersion 0
#define CMLinkIterator_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define CMLinkIteratorNewClass c
#define CMLinkIteratorClassData d
#define CMLinkIteratorCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define CMLinkIterator_classObj CMLinkIteratorClassData.classObject
#define _CMLinkIterator CMLinkIterator_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK CMLinkIteratorNewClass(integer4 somntmajorVersion,
		integer4 somntminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct CMLinkIteratorClassDataStructure {
	SOMClass *classObject;
	somMToken InitCMLinkIterator;
}  _CMLinkIteratorClassData;
SOMEXTERN struct CMLinkIteratorClassDataStructure * SOMLINK resolve_CMLinkIteratorClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct CMLinkIteratorCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _CMLinkIteratorCClassData;
SOMEXTERN struct CMLinkIteratorCClassDataStructure * SOMLINK resolve_CMLinkIteratorCClassData(void);

/*
 * New and Renew macros for CMLinkIterator
 */
#define CMLinkIteratorNew() \
   (_somNew(_CMLinkIterator ? _CMLinkIterator : CMLinkIteratorNewClass(CMLinkIterator_MajorVersion, CMLinkIterator_MinorVersion)))
#define CMLinkIteratorRenew(buf) \
   (_somRenew(_CMLinkIterator ? _CMLinkIterator : CMLinkIteratorNewClass(CMLinkIterator_MajorVersion, CMLinkIterator_MinorVersion), buf))

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

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

/*
 * Override method: IsNotComplete
 */
#define CMLinkIterator_IsNotComplete(somSelf,ev) \
	ODLinkIterator_IsNotComplete(somSelf,ev)

/*
 * Override method: First
 */
#define CMLinkIterator_First(somSelf,ev) \
	ODLinkIterator_First(somSelf,ev)

/*
 * Override method: Next
 */
#define CMLinkIterator_Next(somSelf,ev) \
	ODLinkIterator_Next(somSelf,ev)

/*
 * New Method: InitCMLinkIterator
 */
typedef void   (SOMLINK * somTD_CMLinkIterator_InitCMLinkIterator)(CMLinkIterator *somSelf, Environment *ev,
		CMDraft* draft);
#define somMD_CMLinkIterator_InitCMLinkIterator "::CMLinkIterator::InitCMLinkIterator"
#define CMLinkIterator_InitCMLinkIterator(somSelf,ev,draft) \
    (SOM_Resolve(somSelf, CMLinkIterator, InitCMLinkIterator) \
	(somSelf,ev,draft))
#ifndef SOMGD_InitCMLinkIterator
    #if (defined(_InitCMLinkIterator) || defined(__InitCMLinkIterator))
        #undef _InitCMLinkIterator
        #undef __InitCMLinkIterator
        #define SOMGD_InitCMLinkIterator 1
    #else
        #define _InitCMLinkIterator CMLinkIterator_InitCMLinkIterator
    #endif /* _InitCMLinkIterator */
#endif /* SOMGD_InitCMLinkIterator */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define CMLinkIterator_InitODLinkIterator ODLinkIterator_InitODLinkIterator
#define CMLinkIterator_InitObject ODObject_InitObject
#define CMLinkIterator_IsInitialized ODObject_IsInitialized
#define CMLinkIterator_HasExtension ODObject_HasExtension
#define CMLinkIterator_GetExtension ODObject_GetExtension
#define CMLinkIterator_ReleaseExtension ODObject_ReleaseExtension
#define CMLinkIterator_Purge ODObject_Purge
#define CMLinkIterator_IsEqualTo ODObject_IsEqualTo
#define CMLinkIterator_SubClassResponsibility ODObject_SubClassResponsibility
#define CMLinkIterator_somDefaultInit SOMObject_somDefaultInit
#define CMLinkIterator_somDestruct SOMObject_somDestruct
#define CMLinkIterator_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define CMLinkIterator_somDefaultAssign SOMObject_somDefaultAssign
#define CMLinkIterator_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define CMLinkIterator_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define CMLinkIterator_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define CMLinkIterator_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define CMLinkIterator_somDefaultVAssign SOMObject_somDefaultVAssign
#define CMLinkIterator_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define CMLinkIterator_somFree SOMObject_somFree
#define CMLinkIterator_somGetClass SOMObject_somGetClass
#define CMLinkIterator_somGetClassName SOMObject_somGetClassName
#define CMLinkIterator_somGetSize SOMObject_somGetSize
#define CMLinkIterator_somIsA SOMObject_somIsA
#define CMLinkIterator_somIsInstanceOf SOMObject_somIsInstanceOf
#define CMLinkIterator_somRespondsTo SOMObject_somRespondsTo
#define CMLinkIterator_somDispatch SOMObject_somDispatch
#define CMLinkIterator_somClassDispatch SOMObject_somClassDispatch
#define CMLinkIterator_somCastObj SOMObject_somCastObj
#define CMLinkIterator_somResetObj SOMObject_somResetObj
#define CMLinkIterator_somDispatchV SOMObject_somDispatchV
#define CMLinkIterator_somDispatchL SOMObject_somDispatchL
#define CMLinkIterator_somDispatchA SOMObject_somDispatchA
#define CMLinkIterator_somDispatchD SOMObject_somDispatchD
#define CMLinkIterator_somPrintSelf SOMObject_somPrintSelf
#define CMLinkIterator_somDumpSelf SOMObject_somDumpSelf
#define CMLinkIterator_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_CMLinkIterator_h */
