 
#ifndef glist_DEFINED
#define glist_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from glist.ch and will be
 * overwritten.  Make changes to glist.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from glist.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


 

/* List object
 * for Graph Editor
 */

struct glistelt {
    char * this;
    struct glistelt *next;
};






/* 
 * End of information copied from glist.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
/* glist has no super class */ 
 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for glist 
 */ 
struct glist { 
    struct {
	struct basicobject_methods *glist_methods;
    } header;
    struct glistelt *head;
    struct glistelt *tail;
    long size;
    procedure DestroyProc;

};

 
/* 
 * End of data structure for glist.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef glist_PROGRAMMERVERSION
#define glist_PROGRAMMERVERSION 1
#endif /* glist_PROGRAMMERVERSION */

#ifdef glist_VERSION
#undef glist_VERSION
#endif /* glist_VERSION */
#define glist_VERSION ((((glist_PROGRAMMERVERSION << 16) ^ (11 << 8) ^ sizeof(struct glist)) & 0x7ffff) + 0x80000 + (65 << 20))


#endif /* class_StaticInfoOnly */
#define glist_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *glist__GetClassInfo(); \
 extern struct classheader *glist_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, glist_classheader_StaticExport->name, glist__GetClassInfo, NULL, glist_classheader_StaticExport->namekey); } 
 
#define glist_StaticLoad()  \
    { \
    glist_StaticLoadOnlyThisClass();  \
    } 
 
#define glist_StaticEntry  {glist_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader glist_classheader = {
    glist_VERSION,
    "glist",
    "glist",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define glist_CLASSPROCEDURES (glist_classheader.classprocedures)
int glist_classref_;
#endif /* class_StaticInfoOnly */

#endif /* glist_DEFINED */

#if !defined(glist_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_glist) && !defined(class_StaticEntriesOnly)
#define glist_ROUTINESDEFINED

#define glist_Insert(self,element) \
    ((* ((boolean (*)())((self)->header.glist_methods->routines[0]))) (self,element))
#define glist_Push(self,element) \
    ((* ((boolean (*)())((self)->header.glist_methods->routines[1]))) (self,element))
#define glist_Pop(self) \
    ((* ((char * (*)())((self)->header.glist_methods->routines[2]))) (self))
#define glist_InsertSorted(self,element,greater) \
    ((* ((boolean (*)())((self)->header.glist_methods->routines[3]))) (self,element,greater))
#define glist_Sort(self,greater) \
    ((* ((boolean (*)())((self)->header.glist_methods->routines[4]))) (self,greater))
#define glist_InsertUnique(self,element) \
    ((* ((boolean (*)())((self)->header.glist_methods->routines[5]))) (self,element))
#define glist_Delete(self,element,destroy) \
    ((* ((boolean (*)())((self)->header.glist_methods->routines[6]))) (self,element,destroy))
#define glist_Find(self,filter,rock) \
    ((* ((char * (*)())((self)->header.glist_methods->routines[7]))) (self,filter,rock))
#define glist_Enumerate(self,proc,rock) \
    ((* ((void (*)())((self)->header.glist_methods->routines[8]))) (self,proc,rock))
#define glist_Contains(self,element) \
    ((* ((boolean (*)())((self)->header.glist_methods->routines[9]))) (self,element))
#define glist_Clear(self,destroy) \
    ((* ((void (*)())((self)->header.glist_methods->routines[10]))) (self,destroy))
#define glist_First(self) \
 (((self))->head->this)
#define glist_Last(self) \
 (((self))->tail->this)
#define glist_Size(self) \
 (((self))->size)

#define glist_NewFromObject(self) \
    ((* ((struct glist * (*)())((self)->header.glist_methods->info->procs->routines[0]))) (&glist_classheader, (self)->header.glist_methods->info->versionnumber))
#define glist_New() \
    (*((struct glist * (*)()) (glist_CLASSPROCEDURES->routines[0])))(&glist_classheader,glist_VERSION)
#define glist_Initialize(self) \
    (*((void (*)()) (glist_CLASSPROCEDURES->routines[2])))(&glist_classheader,self, glist_VERSION)

#define glist_Destroy(self) \
    ((* ((void (*)()) ((self)->header.glist_methods->info->procs->routines[1]))) (&glist_classheader, self))
#define glist_Finalize(self) \
    (*((void (*)()) (glist_CLASSPROCEDURES->routines[3])))(&glist_classheader,self)

#define glist_Create(Destroy) \
    (*((struct glist * (*)()) (glist_CLASSPROCEDURES->routines[5])))(&glist_classheader,Destroy)
#define glist_FinalizeObject(self) \
    (*((void (*)()) (glist_CLASSPROCEDURES->routines[6])))(&glist_classheader,self)
#define glist_InitializeObject(self) \
    (*((boolean (*)()) (glist_CLASSPROCEDURES->routines[7])))(&glist_classheader,self)
#define glist_Copy(dest,source) \
    (*((void (*)()) (glist_CLASSPROCEDURES->routines[8])))(&glist_classheader,dest,source)


#endif /* !defined(glist_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_glist ) && !defined(class_StaticEntriesOnly)*/

