home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
tdeqlink.xh
< prev
next >
Wrap
Text File
|
1999-02-22
|
29KB
|
924 lines
/*
* This file was generated by the SOM Compiler.
* FileName: tdeqlink.xh.
* Generated using:
* SOM Precompiler somipc: 2.29.1.17
* SOM Emitter emitxh: 2.47
*/
/*
* COMPONENT_NAME: somuc
*
* ORIGINS: 82, 81, 27
*
*
* 25H7912 (C) COPYRIGHT International Business Machines Corp. 1992,1996,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.
*
* Copyright ⌐ 1988, 1989 Apple Computer, Inc. All rights reserved.
*
* CLASS_NAME: somf_TDequeLinkable
*
* DESCRIPTION: This class provides the user with a generic MLinkable
* containing a long value.
*
*/
#ifndef SOM_somf_TDequeLinkable_xh
#define SOM_somf_TDequeLinkable_xh
class somf_TDequeLinkable;
#define somf_TDequeLinkable_MajorVersion 2
#define somf_TDequeLinkable_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_somf_MLinkable_xh
#include <mlink.xh>
#endif
#ifndef somf_TDequeLinkable_API
#define somf_TDequeLinkable_API
/*
* -- The Class API
*/
/*
* Start of bindings for IDL types
*/
class SOMClass;
class SOMObject;
class somf_MCollectible;
/*
* End of bindings for IDL types.
*/
/* A procedure to create the somf_TDequeLinkable Class */
SOMEXTERN SOMClass * SOMLINK somf_TDequeLinkableNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the somf_TDequeLinkable class object, and the methods it introduces. */
SOMEXTERN struct somf_TDequeLinkableClassDataStructure {
SOMClass *classObject;
somMToken somfGetValue;
somMToken somfSetValue;
somMToken somfTDequeLinkableInitDDM;
somMToken somfTDequeLinkableInitDD;
} SOMDLINK somf_TDequeLinkableClassData;
#define _somf_TDequeLinkable somf_TDequeLinkableClassData.classObject
/* The API to parentMtabs for somf_TDequeLinkable, and the instance data it introduces. */
SOMEXTERN struct somf_TDequeLinkableCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK somf_TDequeLinkableCClassData;
/*
* -- Typedefs for somf_TDequeLinkable Method Procedures
*/
SOMEXTERN {
typedef somf_TDequeLinkable* SOMLINK somTP_somf_TDequeLinkable_somfTDequeLinkableInitDDM(somf_TDequeLinkable *somSelf, Environment *ev,
somf_TDequeLinkable* previous,
somf_TDequeLinkable* next,
somf_MCollectible* v);
typedef somTP_somf_TDequeLinkable_somfTDequeLinkableInitDDM *somTD_somf_TDequeLinkable_somfTDequeLinkableInitDDM;
typedef somf_TDequeLinkable* SOMLINK somTP_somf_TDequeLinkable_somfTDequeLinkableInitDD(somf_TDequeLinkable *somSelf, Environment *ev,
somf_TDequeLinkable* previous,
somf_TDequeLinkable* next);
typedef somTP_somf_TDequeLinkable_somfTDequeLinkableInitDD *somTD_somf_TDequeLinkable_somfTDequeLinkableInitDD;
typedef somf_MCollectible* SOMLINK somTP_somf_TDequeLinkable_somfGetValue(somf_TDequeLinkable *somSelf, Environment *ev);
typedef somTP_somf_TDequeLinkable_somfGetValue *somTD_somf_TDequeLinkable_somfGetValue;
typedef void SOMLINK somTP_somf_TDequeLinkable_somfSetValue(somf_TDequeLinkable *somSelf, Environment *ev,
somf_MCollectible* v);
typedef somTP_somf_TDequeLinkable_somfSetValue *somTD_somf_TDequeLinkable_somfSetValue;
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef somf_MLinkable* SOMLINK somTP_somf_TDequeLinkable_somfMLinkableInit(somf_TDequeLinkable *somSelf, Environment *ev,
somf_MLinkable* n,
somf_MLinkable* p);
typedef somTP_somf_TDequeLinkable_somfMLinkableInit *somTD_somf_TDequeLinkable_somfMLinkableInit;
typedef somf_MLinkable* SOMLINK somTP_somf_TDequeLinkable_somfGetNext(somf_TDequeLinkable *somSelf, Environment *ev);
typedef somTP_somf_TDequeLinkable_somfGetNext *somTD_somf_TDequeLinkable_somfGetNext;
typedef void SOMLINK somTP_somf_TDequeLinkable_somfSetNext(somf_TDequeLinkable *somSelf, Environment *ev,
somf_MLinkable* aLink);
typedef somTP_somf_TDequeLinkable_somfSetNext *somTD_somf_TDequeLinkable_somfSetNext;
typedef somf_MLinkable* SOMLINK somTP_somf_TDequeLinkable_somfGetPrevious(somf_TDequeLinkable *somSelf, Environment *ev);
typedef somTP_somf_TDequeLinkable_somfGetPrevious *somTD_somf_TDequeLinkable_somfGetPrevious;
typedef void SOMLINK somTP_somf_TDequeLinkable_somfSetPrevious(somf_TDequeLinkable *somSelf, Environment *ev,
somf_MLinkable* aLink);
typedef somTP_somf_TDequeLinkable_somfSetPrevious *somTD_somf_TDequeLinkable_somfSetPrevious;
typedef void SOMLINK somTP_somf_TDequeLinkable_somInit(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somInit *somTD_somf_TDequeLinkable_somInit;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDefaultInit(somf_TDequeLinkable *somSelf,
som3InitCtrl* ctrl);
typedef somTP_somf_TDequeLinkable_somDefaultInit *somTD_somf_TDequeLinkable_somDefaultInit;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDestruct(somf_TDequeLinkable *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_somf_TDequeLinkable_somDestruct *somTD_somf_TDequeLinkable_somDestruct;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDefaultCopyInit(somf_TDequeLinkable *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultCopyInit *somTD_somf_TDequeLinkable_somDefaultCopyInit;
typedef somf_TDequeLinkable* SOMLINK somTP_somf_TDequeLinkable_somDefaultAssign(somf_TDequeLinkable *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultAssign *somTD_somf_TDequeLinkable_somDefaultAssign;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDefaultConstCopyInit(somf_TDequeLinkable *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultConstCopyInit *somTD_somf_TDequeLinkable_somDefaultConstCopyInit;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDefaultVCopyInit(somf_TDequeLinkable *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultVCopyInit *somTD_somf_TDequeLinkable_somDefaultVCopyInit;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDefaultConstVCopyInit(somf_TDequeLinkable *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultConstVCopyInit *somTD_somf_TDequeLinkable_somDefaultConstVCopyInit;
typedef somf_TDequeLinkable* SOMLINK somTP_somf_TDequeLinkable_somDefaultConstAssign(somf_TDequeLinkable *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultConstAssign *somTD_somf_TDequeLinkable_somDefaultConstAssign;
typedef somf_TDequeLinkable* SOMLINK somTP_somf_TDequeLinkable_somDefaultVAssign(somf_TDequeLinkable *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultVAssign *somTD_somf_TDequeLinkable_somDefaultVAssign;
typedef somf_TDequeLinkable* SOMLINK somTP_somf_TDequeLinkable_somDefaultConstVAssign(somf_TDequeLinkable *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_somf_TDequeLinkable_somDefaultConstVAssign *somTD_somf_TDequeLinkable_somDefaultConstVAssign;
typedef void SOMLINK somTP_somf_TDequeLinkable_somFree(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somFree *somTD_somf_TDequeLinkable_somFree;
typedef void SOMLINK somTP_somf_TDequeLinkable_somUninit(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somUninit *somTD_somf_TDequeLinkable_somUninit;
typedef SOMClass* SOMLINK somTP_somf_TDequeLinkable_somGetClass(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somGetClass *somTD_somf_TDequeLinkable_somGetClass;
typedef string SOMLINK somTP_somf_TDequeLinkable_somGetClassName(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somGetClassName *somTD_somf_TDequeLinkable_somGetClassName;
typedef long SOMLINK somTP_somf_TDequeLinkable_somGetSize(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somGetSize *somTD_somf_TDequeLinkable_somGetSize;
typedef boolean SOMLINK somTP_somf_TDequeLinkable_somIsA(somf_TDequeLinkable *somSelf,
SOMClass* aClassObj);
typedef somTP_somf_TDequeLinkable_somIsA *somTD_somf_TDequeLinkable_somIsA;
typedef boolean SOMLINK somTP_somf_TDequeLinkable_somIsInstanceOf(somf_TDequeLinkable *somSelf,
SOMClass* aClassObj);
typedef somTP_somf_TDequeLinkable_somIsInstanceOf *somTD_somf_TDequeLinkable_somIsInstanceOf;
typedef boolean SOMLINK somTP_somf_TDequeLinkable_somRespondsTo(somf_TDequeLinkable *somSelf,
somId mId);
typedef somTP_somf_TDequeLinkable_somRespondsTo *somTD_somf_TDequeLinkable_somRespondsTo;
typedef boolean SOMLINK somTP_somf_TDequeLinkable_somDispatch(somf_TDequeLinkable *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_somf_TDequeLinkable_somDispatch *somTD_somf_TDequeLinkable_somDispatch;
typedef boolean SOMLINK somTP_somf_TDequeLinkable_somClassDispatch(somf_TDequeLinkable *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_somf_TDequeLinkable_somClassDispatch *somTD_somf_TDequeLinkable_somClassDispatch;
typedef boolean SOMLINK somTP_somf_TDequeLinkable_somCastObj(somf_TDequeLinkable *somSelf,
SOMClass* cls);
typedef somTP_somf_TDequeLinkable_somCastObj *somTD_somf_TDequeLinkable_somCastObj;
typedef boolean SOMLINK somTP_somf_TDequeLinkable_somResetObj(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somResetObj *somTD_somf_TDequeLinkable_somResetObj;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDispatchV(somf_TDequeLinkable *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_somf_TDequeLinkable_somDispatchV *somTD_somf_TDequeLinkable_somDispatchV;
typedef long SOMLINK somTP_somf_TDequeLinkable_somDispatchL(somf_TDequeLinkable *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_somf_TDequeLinkable_somDispatchL *somTD_somf_TDequeLinkable_somDispatchL;
typedef void* SOMLINK somTP_somf_TDequeLinkable_somDispatchA(somf_TDequeLinkable *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_somf_TDequeLinkable_somDispatchA *somTD_somf_TDequeLinkable_somDispatchA;
typedef double SOMLINK somTP_somf_TDequeLinkable_somDispatchD(somf_TDequeLinkable *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_somf_TDequeLinkable_somDispatchD *somTD_somf_TDequeLinkable_somDispatchD;
typedef SOMObject* SOMLINK somTP_somf_TDequeLinkable_somPrintSelf(somf_TDequeLinkable *somSelf);
typedef somTP_somf_TDequeLinkable_somPrintSelf *somTD_somf_TDequeLinkable_somPrintSelf;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDumpSelf(somf_TDequeLinkable *somSelf,
long level);
typedef somTP_somf_TDequeLinkable_somDumpSelf *somTD_somf_TDequeLinkable_somDumpSelf;
typedef void SOMLINK somTP_somf_TDequeLinkable_somDumpSelfInt(somf_TDequeLinkable *somSelf,
long level);
typedef somTP_somf_TDequeLinkable_somDumpSelfInt *somTD_somf_TDequeLinkable_somDumpSelfInt;
}
#endif /* somf_TDequeLinkable_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 somf_TDequeLinkable
*/
class somf_TDequeLinkable : public somf_MLinkable
{
public:
// somf_TDequeLinkable::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 (!_somf_TDequeLinkable) somf_TDequeLinkableNewClass(somf_TDequeLinkable_MajorVersion,somf_TDequeLinkable_MinorVersion);
return (void*)
SOM_Resolve(_somf_TDequeLinkable,SOMClass,somNewNoInit)
((SOMClass *)((void*)_somf_TDequeLinkable));
}
// somf_TDequeLinkable::delete uses somDestruct.
void operator delete(void * obj)
{
if (obj && *(void**)obj) {
SOM_Resolve(obj,SOMObject,somFree)
((SOMObject*)obj);
}
}
somf_TDequeLinkable& operator=(somf_TDequeLinkable& fromObj)
{
this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
return *this;
}
somf_TDequeLinkable()
{
if (*(void**)this !=
((somParentMtabStructPtr)
(somf_TDequeLinkableCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultInit(0);
}
somf_TDequeLinkable(somf_TDequeLinkable* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(somf_TDequeLinkableCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
somf_TDequeLinkable(const somf_TDequeLinkable* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(somf_TDequeLinkableCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif
/* method: somfTDequeLinkableInitDDM */
somf_TDequeLinkable* somfTDequeLinkableInitDDM(Environment *ev,
somf_TDequeLinkable* previous,
somf_TDequeLinkable* next,
somf_MCollectible* v)
{
/*
* This method initializes the somf_TDequeLinkable object.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,somf_TDequeLinkable,somfTDequeLinkableInitDDM)
(this, ev,previous,next,v);
}
/* method: somfTDequeLinkableInitDD */
somf_TDequeLinkable* somfTDequeLinkableInitDD(Environment *ev,
somf_TDequeLinkable* previous,
somf_TDequeLinkable* next)
{
/*
* This method initializes the somf_TDequeLinkable object.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,somf_TDequeLinkable,somfTDequeLinkableInitDD)
(this, ev,previous,next);
}
/* method: somfGetValue */
somf_MCollectible* somfGetValue(Environment *ev)
{
/*
* This method gets the value of the somf_TDequeLinkable.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,somf_TDequeLinkable,somfGetValue)
(this, ev);
}
/* method: somfSetValue */
void somfSetValue(Environment *ev,
somf_MCollectible* v)
{
/*
* This method sets the value of the somf_TDequeLinkable.
*/
SOM_ResolveD(this,somf_TDequeLinkable,somf_TDequeLinkable,somfSetValue)
(this, ev,v);
}
/*
* Reintroduce inherited methods
*/
/* method: somfMLinkableInit */
somf_MLinkable* somfMLinkableInit(Environment *ev,
somf_MLinkable* n,
somf_MLinkable* p)
{
/*
* This method initialized the somf_MLinkable object using n and p.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,somf_MLinkable,somfMLinkableInit)
(this, ev,n,p);
}
/* method: somfGetNext */
somf_MLinkable* somfGetNext(Environment *ev)
{
/*
* This method returns a pointer to the next somf_MLinkable.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,somf_MLinkable,somfGetNext)
(this, ev);
}
/* method: somfSetNext */
void somfSetNext(Environment *ev,
somf_MLinkable* aLink)
{
/*
* This method sets the pointer to the next somf_MLinkable.
*/
SOM_ResolveD(this,somf_TDequeLinkable,somf_MLinkable,somfSetNext)
(this, ev,aLink);
}
/* method: somfGetPrevious */
somf_MLinkable* somfGetPrevious(Environment *ev)
{
/*
* This method returns a pointer to the previous somf_MLinkable.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,somf_MLinkable,somfGetPrevious)
(this, ev);
}
/* method: somfSetPrevious */
void somfSetPrevious(Environment *ev,
somf_MLinkable* aLink)
{
/*
* This method sets the pointer to the previous somf_MLinkable.
*/
SOM_ResolveD(this,somf_TDequeLinkable,somf_MLinkable,somfSetPrevious)
(this, ev,aLink);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somInit)
(this);
}
/* 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,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,SOMObject,somDefaultCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultAssign */
somf_TDequeLinkable* somDefaultAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator. Use this to "assign" the state of one
* object to another.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,SOMObject,somDefaultConstVCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultConstAssign */
somf_TDequeLinkable* somDefaultConstAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const fromObj.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somDefaultConstAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultVAssign */
somf_TDequeLinkable* somDefaultVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a volatile fromObj.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somDefaultVAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultConstVAssign */
somf_TDequeLinkable* somDefaultConstVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const volatile fromObj.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somDefaultConstVAssign)
(this,ctrl,fromObj);
}
/* method: somFree */
void somFree()
{
/*
* Use as directed by framework implementations.
*/
SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somFree)
(this);
}
/* method: somUninit */
void somUninit()
{
/*
* Obsolete but still supported. Override somDestruct instead of somUninit.
*/
SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somUninit)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
/*
* Return the receiver's class.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
string somGetClassName()
{
/*
* Return the name of the receiver's class.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
/*
* Return the size of the receiver.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,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 somf_TDequeLinkable_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,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 somf_TDequeLinkable_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
/*
* reset an object to its true class. Returns true always.
*/
return SOM_ResolveD(this,somf_TDequeLinkable,SOMObject,somResetObj)
(this);
}
/* va_list method: somDispatchV */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void somf_TDequeLinkable_somDispatchV(somId methodId,
somId descriptor,
va_list ap)
{ SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
va_end(ap);
}
/* va_list method: somDispatchL */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
long somf_TDequeLinkable_somDispatchL(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,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* somf_TDequeLinkable_somDispatchA(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,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 somf_TDequeLinkable_somDispatchD(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,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,somf_TDequeLinkable,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* somf_TDequeLinkable */
#endif /* SOM_somf_TDequeLinkable_xh */