
/*
 * This file was generated by the SOM Compiler.
 * FileName: objset.xh.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.17
 *     SOM Emitter emitxh: 2.47
 */

/*
 *    COMPONENT_NAME: somp
 * 
 *    ORIGINS: 27
 * 
 * 
 *     25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996
 *    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.
 * 
 */


#ifndef SOM_SOMPObjectSet_xh
#define SOM_SOMPObjectSet_xh

class SOMPObjectSet;

/*
 *  This class is an abstact definition for a set of objects
 *  and the operations which can be performed on the set.
 */

#define SOMPObjectSet_MajorVersion 2
#define SOMPObjectSet_MinorVersion 1

/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>

/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif

#ifndef SOMPObjectSet_API
#define SOMPObjectSet_API
/*
 * -- The Class API
 */

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class SOMBuf;
class SOMPPersistentId;

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

/* A procedure to create the SOMPObjectSet Class */
SOMEXTERN SOMClass * SOMLINK SOMPObjectSetNewClass(
		integer4 majorVersion,
		integer4 minorVersion);

/* The API to the SOMPObjectSet class object, and the methods it introduces. */
SOMEXTERN struct SOMPObjectSetClassDataStructure {
	SOMClass *classObject;
	somMToken sompSetGetNth;
	somMToken sompFindByID;
	somMToken sompFindByAddress;
	somMToken sompAddToSet;
	somMToken sompSetDeleteNth;
	somMToken sompGetSetSize;
	somMToken sompObjEqualsID;
} SOMDLINK SOMPObjectSetClassData;
#define _SOMPObjectSet SOMPObjectSetClassData.classObject

/* The API to parentMtabs for SOMPObjectSet, and the instance data it introduces. */
SOMEXTERN struct SOMPObjectSetCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOMPObjectSetCClassData;

/*
 * -- Typedefs for SOMPObjectSet Method Procedures
 */
SOMEXTERN {
typedef SOMObject*   SOMLINK somTP_SOMPObjectSet_sompSetGetNth(SOMPObjectSet *somSelf, Environment *ev, 
		unsigned long n);
typedef somTP_SOMPObjectSet_sompSetGetNth *somTD_SOMPObjectSet_sompSetGetNth;
typedef SOMObject*   SOMLINK somTP_SOMPObjectSet_sompFindByID(SOMPObjectSet *somSelf, Environment *ev, 
		SOMPPersistentId* lookfor);
typedef somTP_SOMPObjectSet_sompFindByID *somTD_SOMPObjectSet_sompFindByID;
typedef long   SOMLINK somTP_SOMPObjectSet_sompFindByAddress(SOMPObjectSet *somSelf, Environment *ev, 
		SOMObject* lookfor);
typedef somTP_SOMPObjectSet_sompFindByAddress *somTD_SOMPObjectSet_sompFindByAddress;
typedef void   SOMLINK somTP_SOMPObjectSet_sompAddToSet(SOMPObjectSet *somSelf, Environment *ev, 
		SOMObject* thisObject);
typedef somTP_SOMPObjectSet_sompAddToSet *somTD_SOMPObjectSet_sompAddToSet;
typedef void   SOMLINK somTP_SOMPObjectSet_sompSetDeleteNth(SOMPObjectSet *somSelf, Environment *ev, 
		unsigned long n);
typedef somTP_SOMPObjectSet_sompSetDeleteNth *somTD_SOMPObjectSet_sompSetDeleteNth;
typedef long   SOMLINK somTP_SOMPObjectSet_sompGetSetSize(SOMPObjectSet *somSelf, Environment *ev);
typedef somTP_SOMPObjectSet_sompGetSetSize *somTD_SOMPObjectSet_sompGetSetSize;
typedef boolean   SOMLINK somTP_SOMPObjectSet_sompObjEqualsID(SOMPObjectSet *somSelf, Environment *ev, 
		SOMObject* cmpObj, 
		SOMPPersistentId* lookfor);
typedef somTP_SOMPObjectSet_sompObjEqualsID *somTD_SOMPObjectSet_sompObjEqualsID;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_SOMPObjectSet_somDefaultInit(SOMPObjectSet *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_SOMPObjectSet_somDefaultInit *somTD_SOMPObjectSet_somDefaultInit;
typedef void   SOMLINK somTP_SOMPObjectSet_somDestruct(SOMPObjectSet *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_SOMPObjectSet_somDestruct *somTD_SOMPObjectSet_somDestruct;
typedef void   SOMLINK somTP_SOMPObjectSet_somDefaultCopyInit(SOMPObjectSet *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultCopyInit *somTD_SOMPObjectSet_somDefaultCopyInit;
typedef SOMPObjectSet*   SOMLINK somTP_SOMPObjectSet_somDefaultAssign(SOMPObjectSet *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultAssign *somTD_SOMPObjectSet_somDefaultAssign;
typedef void   SOMLINK somTP_SOMPObjectSet_somDefaultConstCopyInit(SOMPObjectSet *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultConstCopyInit *somTD_SOMPObjectSet_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_SOMPObjectSet_somDefaultVCopyInit(SOMPObjectSet *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultVCopyInit *somTD_SOMPObjectSet_somDefaultVCopyInit;
typedef void   SOMLINK somTP_SOMPObjectSet_somDefaultConstVCopyInit(SOMPObjectSet *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultConstVCopyInit *somTD_SOMPObjectSet_somDefaultConstVCopyInit;
typedef SOMPObjectSet*   SOMLINK somTP_SOMPObjectSet_somDefaultConstAssign(SOMPObjectSet *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultConstAssign *somTD_SOMPObjectSet_somDefaultConstAssign;
typedef SOMPObjectSet*   SOMLINK somTP_SOMPObjectSet_somDefaultVAssign(SOMPObjectSet *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultVAssign *somTD_SOMPObjectSet_somDefaultVAssign;
typedef SOMPObjectSet*   SOMLINK somTP_SOMPObjectSet_somDefaultConstVAssign(SOMPObjectSet *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMPObjectSet_somDefaultConstVAssign *somTD_SOMPObjectSet_somDefaultConstVAssign;
typedef void   SOMLINK somTP_SOMPObjectSet_somInit(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somInit *somTD_SOMPObjectSet_somInit;
typedef void   SOMLINK somTP_SOMPObjectSet_somFree(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somFree *somTD_SOMPObjectSet_somFree;
typedef void   SOMLINK somTP_SOMPObjectSet_somUninit(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somUninit *somTD_SOMPObjectSet_somUninit;
typedef SOMClass*   SOMLINK somTP_SOMPObjectSet_somGetClass(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somGetClass *somTD_SOMPObjectSet_somGetClass;
typedef string   SOMLINK somTP_SOMPObjectSet_somGetClassName(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somGetClassName *somTD_SOMPObjectSet_somGetClassName;
typedef long   SOMLINK somTP_SOMPObjectSet_somGetSize(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somGetSize *somTD_SOMPObjectSet_somGetSize;
typedef boolean   SOMLINK somTP_SOMPObjectSet_somIsA(SOMPObjectSet *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMPObjectSet_somIsA *somTD_SOMPObjectSet_somIsA;
typedef boolean   SOMLINK somTP_SOMPObjectSet_somIsInstanceOf(SOMPObjectSet *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMPObjectSet_somIsInstanceOf *somTD_SOMPObjectSet_somIsInstanceOf;
typedef boolean   SOMLINK somTP_SOMPObjectSet_somRespondsTo(SOMPObjectSet *somSelf, 
		somId mId);
typedef somTP_SOMPObjectSet_somRespondsTo *somTD_SOMPObjectSet_somRespondsTo;
typedef boolean   SOMLINK somTP_SOMPObjectSet_somDispatch(SOMPObjectSet *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMPObjectSet_somDispatch *somTD_SOMPObjectSet_somDispatch;
typedef boolean   SOMLINK somTP_SOMPObjectSet_somClassDispatch(SOMPObjectSet *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMPObjectSet_somClassDispatch *somTD_SOMPObjectSet_somClassDispatch;
typedef boolean   SOMLINK somTP_SOMPObjectSet_somCastObj(SOMPObjectSet *somSelf, 
		SOMClass* cls);
typedef somTP_SOMPObjectSet_somCastObj *somTD_SOMPObjectSet_somCastObj;
typedef boolean   SOMLINK somTP_SOMPObjectSet_somResetObj(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somResetObj *somTD_SOMPObjectSet_somResetObj;
typedef void   SOMLINK somTP_SOMPObjectSet_somDispatchV(SOMPObjectSet *somSelf, 
		somId methodId, 
		somId descriptor, 
		va_list ap);
typedef somTP_SOMPObjectSet_somDispatchV *somTD_SOMPObjectSet_somDispatchV;
typedef long   SOMLINK somTP_SOMPObjectSet_somDispatchL(SOMPObjectSet *somSelf, 
		somId methodId, 
		somId descriptor, 
		va_list ap);
typedef somTP_SOMPObjectSet_somDispatchL *somTD_SOMPObjectSet_somDispatchL;
typedef void*   SOMLINK somTP_SOMPObjectSet_somDispatchA(SOMPObjectSet *somSelf, 
		somId methodId, 
		somId descriptor, 
		va_list ap);
typedef somTP_SOMPObjectSet_somDispatchA *somTD_SOMPObjectSet_somDispatchA;
typedef double   SOMLINK somTP_SOMPObjectSet_somDispatchD(SOMPObjectSet *somSelf, 
		somId methodId, 
		somId descriptor, 
		va_list ap);
typedef somTP_SOMPObjectSet_somDispatchD *somTD_SOMPObjectSet_somDispatchD;
typedef SOMObject*   SOMLINK somTP_SOMPObjectSet_somPrintSelf(SOMPObjectSet *somSelf);
typedef somTP_SOMPObjectSet_somPrintSelf *somTD_SOMPObjectSet_somPrintSelf;
typedef void   SOMLINK somTP_SOMPObjectSet_somDumpSelf(SOMPObjectSet *somSelf, 
		long level);
typedef somTP_SOMPObjectSet_somDumpSelf *somTD_SOMPObjectSet_somDumpSelf;
typedef void   SOMLINK somTP_SOMPObjectSet_somDumpSelfInt(SOMPObjectSet *somSelf, 
		long level);
typedef somTP_SOMPObjectSet_somDumpSelfInt *somTD_SOMPObjectSet_somDumpSelfInt;
}

#endif /* SOMPObjectSet_API */


/*
 * -- 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))

/*
 * -- The C++ Wrapper Class for SOMPObjectSet
 */
class SOMPObjectSet : public SOMObject
{
/*
 *  This class is an abstact definition for a set of objects
 *  and the operations which can be performed on the set.
 */
public:

// SOMPObjectSet::new creates the class object if necessary, and then uses somNewNoInit
// to allocate memory and create the object. Initialization is in ctors.
void *operator new(size_t)
{
   if (!_SOMPObjectSet) SOMPObjectSetNewClass(SOMPObjectSet_MajorVersion,SOMPObjectSet_MinorVersion);
   return (void*)
      SOM_Resolve(_SOMPObjectSet,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_SOMPObjectSet));
}

// SOMPObjectSet::delete uses somDestruct.
void operator delete(void * obj)
{
   if (obj && *(void**)obj) {
      SOM_Resolve(obj,SOMObject,somFree)
         ((SOMObject*)obj);
   }
}

SOMPObjectSet& operator=(SOMPObjectSet& fromObj)
{
   this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
   return *this;
}

SOMPObjectSet()
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (SOMPObjectSetCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultInit(0);
}

SOMPObjectSet(SOMPObjectSet* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (SOMPObjectSetCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}

#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
SOMPObjectSet(const SOMPObjectSet* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (SOMPObjectSetCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif


/* method: sompSetGetNth */
SOMObject*   sompSetGetNth(Environment *ev, 
		unsigned long n)
{
/*
 *  Return the nth object from the set.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMPObjectSet,sompSetGetNth)
	(this, ev,n);
}


/* method: sompFindByID */
SOMObject*   sompFindByID(Environment *ev, 
		SOMPPersistentId* lookfor)
{
/*
 *  Return the object with the ID given by <lookfor>. The true type of the
 *  ID passed depends on the objects in the set. (All the objects in the
 *  set are expected to be of the same type.)
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMPObjectSet,sompFindByID)
	(this, ev,lookfor);
}


/* method: sompFindByAddress */
long   sompFindByAddress(Environment *ev, 
		SOMObject* lookfor)
{
/*
 *  Returns the position in the set of the "lookfor" object or
 *  -1 if the object was not found.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMPObjectSet,sompFindByAddress)
	(this, ev,lookfor);
}


/* method: sompAddToSet */
void   sompAddToSet(Environment *ev, 
		SOMObject* thisObject)
{
/*
 *  Add an object to the set.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMPObjectSet,sompAddToSet)
	(this, ev,thisObject);
}


/* method: sompSetDeleteNth */
void   sompSetDeleteNth(Environment *ev, 
		unsigned long n)
{
/*
 *  Delete the nth object from the set.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMPObjectSet,sompSetDeleteNth)
	(this, ev,n);
}


/* method: sompGetSetSize */
long   sompGetSetSize(Environment *ev)
{
/*
 *  Returns the set size.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMPObjectSet,sompGetSetSize)
	(this, ev);
}


/* method: sompObjEqualsID */
boolean   sompObjEqualsID(Environment *ev, 
		SOMObject* cmpObj, 
		SOMPPersistentId* lookfor)
{
/*
 *  Returns TRUE if the given object <cmpObj> has the given
 *  ID <lookfor>. Override this to make the appropriate
 *  comparison for the objects in the set.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMPObjectSet,sompObjEqualsID)
	(this, ev,cmpObj,lookfor);
}


/*
 * Reintroduce inherited methods
 */

/* initializer method: somDefaultInit */
void   somDefaultInit(som3InitCtrl* ctrl)
{
/*
 *  A default initializer for a SOM object. Passing a null ctrl
 *  indicates to the receiver that its class is the class of the
 *  object being initialized, whereby the initializer will determine
 *  an appropriate control structure.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultInit)
	(this,ctrl);
}


/* method: somDestruct */
void   somDestruct(octet doFree, 
		som3DestructCtrl* ctrl)
{
/*
 *  The default destructor for a SOM object. A nonzero <doFree>
 *  indicates that the object storage should be freed by the
 *  object's class (via somDeallocate) after uninitialization.
 *  As with somDefaultInit, a null ctrl can be passed.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDestruct)
	(this,doFree,ctrl);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor. Use this to make copies of objects for
 *  calling methods with "by-value" argument semantics.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultAssign */
SOMPObjectSet*  somDefaultAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator. Use this to "assign" the state of one
 *  object to another.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultAssign)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const fromObj.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultConstCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a volatile fromObj.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultVCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const volatile fromObj.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultConstVCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstAssign */
SOMPObjectSet*  somDefaultConstAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const fromObj.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultConstAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultVAssign */
SOMPObjectSet*  somDefaultVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a volatile fromObj.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultVAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstVAssign */
SOMPObjectSet*  somDefaultConstVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const volatile fromObj.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDefaultConstVAssign)
	(this,ctrl,fromObj);
}


/* method: somInit */
void   somInit()
{
/*
 *  Obsolete but still supported. Override somDefaultInit instead of somInit.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somInit)
	(this);
}


/* method: somFree */
void   somFree()
{
/*
 *  Use as directed by framework implementations.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somFree)
	(this);
}


/* method: somUninit */
void   somUninit()
{
/*
 *  Obsolete but still supported. Override somDestruct instead of somUninit.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somUninit)
	(this);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
/*
 *  Return the receiver's class.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somGetClass)
	(this);
}


/* method: somGetClassName */
string   somGetClassName()
{
/*
 *  Return the name of the receiver's class.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somGetClassName)
	(this);
}


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somGetSize)
	(this);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver responds to methods
 *  introduced by <aClassObj>, and 0 (false) otherwise.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somIsA)
	(this,aClassObj);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver is an instance of
 *  <aClassObj> and 0 (false) otherwise.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somIsInstanceOf)
	(this,aClassObj);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
/*
 *  Returns 1 (true) if the indicated method can be invoked
 *  on the receiver and 0 (false) otherwise.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somRespondsTo)
	(this,mId);
}


/* va_list method: somDispatch */

/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 */
/* the va_list invocation form */
boolean   SOMPObjectSet_somDispatch(somToken* retValue, 
		somId methodId, 
		va_list ap)
{return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */

/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
/* the va_list invocation form */
boolean   SOMPObjectSet_somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap)
{return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,SOMPObjectSet,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* cls)
{
/*
 *  cast the receiving object to cls (which must be an ancestor of the
 *  objects true class. Returns true on success.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somCastObj)
	(this,cls);
}


/* method: somResetObj */
boolean   somResetObj()
{
/*
 *  reset an object to its true class. Returns true always.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somResetObj)
	(this);
}


/* va_list method: somDispatchV */

/*
 *  Obsolete. Use somDispatch instead.
 */
/* the va_list invocation form */
void   SOMPObjectSet_somDispatchV(somId methodId, 
		somId descriptor, 
		va_list ap)
{   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchV)
	(this,methodId,descriptor,ap);
}

/* the varargs invocation form */
void   somDispatchV(somId methodId, 
		somId descriptor, 
		...)
{
/*
 *  Obsolete. Use somDispatch instead.
 */
   va_list ap;
   va_start(ap, descriptor);
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchV)
	(this,methodId,descriptor,ap);
   va_end(ap);
}


/* va_list method: somDispatchL */

/*
 *  Obsolete. Use somDispatch instead.
 */
/* the va_list invocation form */
long   SOMPObjectSet_somDispatchL(somId methodId, 
		somId descriptor, 
		va_list ap)
{return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchL)
	(this,methodId,descriptor,ap);
}

/* the varargs invocation form */
long   somDispatchL(somId methodId, 
		somId descriptor, 
		...)
{
/*
 *  Obsolete. Use somDispatch instead.
 */
   va_list ap;
   va_start(ap, descriptor);
   long __somResult = 
      SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchL)
	(this,methodId,descriptor,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somDispatchA */

/*
 *  Obsolete. Use somDispatch instead.
 */
/* the va_list invocation form */
void*   SOMPObjectSet_somDispatchA(somId methodId, 
		somId descriptor, 
		va_list ap)
{return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchA)
	(this,methodId,descriptor,ap);
}

/* the varargs invocation form */
void*   somDispatchA(somId methodId, 
		somId descriptor, 
		...)
{
/*
 *  Obsolete. Use somDispatch instead.
 */
   va_list ap;
   va_start(ap, descriptor);
   void* __somResult = 
      SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchA)
	(this,methodId,descriptor,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somDispatchD */

/*
 *  Obsolete. Use somDispatch instead.
 */
/* the va_list invocation form */
double   SOMPObjectSet_somDispatchD(somId methodId, 
		somId descriptor, 
		va_list ap)
{return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchD)
	(this,methodId,descriptor,ap);
}

/* the varargs invocation form */
double   somDispatchD(somId methodId, 
		somId descriptor, 
		...)
{
/*
 *  Obsolete. Use somDispatch instead.
 */
   va_list ap;
   va_start(ap, descriptor);
   double __somResult = 
      SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDispatchD)
	(this,methodId,descriptor,ap);
   va_end(ap);
   return __somResult;
}


/* method: somPrintSelf */
SOMObject*   somPrintSelf()
{
/*
 *  Uses <SOMOutCharRoutine> to write a brief string with identifying
 *  information about this object.  The default implementation just gives
 *  the object's class name and its address in memory.
 *  <self> is returned.
 */
   return SOM_ResolveD(this,SOMPObjectSet,SOMObject,somPrintSelf)
	(this);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write a detailed description of this object
 *  and its current state.
 * 
 *  <level> indicates the nesting level for describing compound objects
 *  it must be greater than or equal to zero.  All lines in the
 *  description will be preceeded by <2*level> spaces.
 * 
 *  This routine only actually writes the data that concerns the object
 *  as a whole, such as class, and uses <somDumpSelfInt> to describe
 *  the object's current state.  This approach allows readable
 *  descriptions of compound objects to be constructed.
 * 
 *  Generally it is not necessary to override this method, if it is
 *  overriden it generally must be completely replaced.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDumpSelf)
	(this,level);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write in the current state of this object.
 *  Generally this method will need to be overridden.  When overriding
 *  it, begin by calling the parent class form of this method and then
 *  write in a description of your class's instance data. This will
 *  result in a description of all the object's instance data going
 *  from its root ancestor class to its specific class.
 */
   SOM_ResolveD(this,SOMPObjectSet,SOMObject,somDumpSelfInt)
	(this,level);
}



};   /* SOMPObjectSet */



#endif       /* SOM_SOMPObjectSet_xh */
