5 * $XConsortium: ObjectKey.hh /main/4 1996/04/21 19:45:25 drk $
7 * RESTRICTED CONFIDENTIAL INFORMATION:
9 * The information in this document is subject to special
10 * restrictions in a confidential disclosure agreement bertween
11 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
12 * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
13 * Sun's specific written approval. This documment and all copies
14 * and derivative works thereof must be returned or destroyed at
17 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
25 #include <DtMail/DtLanguages.hh>
27 typedef char * ObjectKeyType;
28 typedef short HashVal;
30 class ObjectKey : public DtCPlusPlusAllocator {
32 ObjectKey(ObjectKeyType type);
33 ObjectKey(ObjectKey &);
34 virtual ~ObjectKey(void);
36 virtual int operator==(ObjectKey &) = 0;
37 virtual int operator!=(ObjectKey &) = 0;
38 virtual int operator<(ObjectKey &) = 0;
39 virtual int operator>(ObjectKey &) = 0;
40 virtual int operator<=(ObjectKey &) = 0;
41 virtual int operator>=(ObjectKey &) = 0;
43 virtual HashVal hashValue(void) = 0;
47 HashVal genericHashValue(void * buf, int len);