 
#ifndef hash_DEFINED
#define hash_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 hash.ch and will be
 * overwritten.  Make changes to hash.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from hash.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.
* $
*/


 

/* A hash table
 *
 */

#define hash_BUCKETS 32






/* 
 * End of information copied from hash.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
/* hash has no super class */ 
 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for hash 
 */ 
struct hash { 
    struct {
	struct basicobject_methods *hash_methods;
    } header;
    struct glist *buckets[hash_BUCKETS];
    procedure hash;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef hash_PROGRAMMERVERSION
#define hash_PROGRAMMERVERSION 1
#endif /* hash_PROGRAMMERVERSION */

#ifdef hash_VERSION
#undef hash_VERSION
#endif /* hash_VERSION */
#define hash_VERSION ((((hash_PROGRAMMERVERSION << 16) ^ (6 << 8) ^ sizeof(struct hash)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define hash_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *hash__GetClassInfo(); \
 extern struct classheader *hash_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, hash_classheader_StaticExport->name, hash__GetClassInfo, NULL, hash_classheader_StaticExport->namekey); } 
 
#define hash_StaticLoad()  \
    { \
    hash_StaticLoadOnlyThisClass();  \
    } 
 
#define hash_StaticEntry  {hash_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader hash_classheader = {
    hash_VERSION,
    "hash",
    "hash",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define hash_CLASSPROCEDURES (hash_classheader.classprocedures)
int hash_classref_;
#endif /* class_StaticInfoOnly */

#endif /* hash_DEFINED */

#if !defined(hash_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_hash) && !defined(class_StaticEntriesOnly)
#define hash_ROUTINESDEFINED

#define hash_Lookup(self,key) \
    ((* ((char * (*)())((self)->header.hash_methods->routines[0]))) (self,key))
#define hash_Store(self,key,value) \
    ((* ((void (*)())((self)->header.hash_methods->routines[1]))) (self,key,value))
#define hash_Delete(self,key) \
    ((* ((char * (*)())((self)->header.hash_methods->routines[2]))) (self,key))
#define hash_Rename(self,key,new) \
    ((* ((char * (*)())((self)->header.hash_methods->routines[3]))) (self,key,new))
#define hash_Clear(self,valFree) \
    ((* ((void (*)())((self)->header.hash_methods->routines[4]))) (self,valFree))
#define hash_Debug(self) \
    ((* ((void (*)())((self)->header.hash_methods->routines[5]))) (self))
#define hash_SetHash(self,fn) \
 ((self)->hash = (fn))

#define hash_NewFromObject(self) \
    ((* ((struct hash * (*)())((self)->header.hash_methods->info->procs->routines[0]))) (&hash_classheader, (self)->header.hash_methods->info->versionnumber))
#define hash_New() \
    (*((struct hash * (*)()) (hash_CLASSPROCEDURES->routines[0])))(&hash_classheader,hash_VERSION)
#define hash_Initialize(self) \
    (*((void (*)()) (hash_CLASSPROCEDURES->routines[2])))(&hash_classheader,self, hash_VERSION)

#define hash_Destroy(self) \
    ((* ((void (*)()) ((self)->header.hash_methods->info->procs->routines[1]))) (&hash_classheader, self))
#define hash_Finalize(self) \
    (*((void (*)()) (hash_CLASSPROCEDURES->routines[3])))(&hash_classheader,self)

#define hash_InitializeObject(self) \
    (*((boolean (*)()) (hash_CLASSPROCEDURES->routines[5])))(&hash_classheader,self)
#define hash_FinalizeObject(self) \
    (*((void (*)()) (hash_CLASSPROCEDURES->routines[6])))(&hash_classheader,self)
#define hash_InitializeClass() \
    (*((boolean (*)()) (hash_CLASSPROCEDURES->routines[7])))(&hash_classheader)


#endif /* !defined(hash_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_hash ) && !defined(class_StaticEntriesOnly)*/

