VR-Forces 4.1.1 Class Documentation
gdbHashKey.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: gdbHashKey.h,v $ $Revision: 1.6 $ $State: Exp $
7 ******************************************************************************/
8 
9 #ifndef gdbHashKey_H_
10 #define gdbHashKey_H_
11 
12 #include "gdb/gdbDefines.h"
13 #include <vlutil/vlHashKeys.h>
14 
15 // class DtGdbHashKey:
16 //
17 // Instances of DtGdbHashKey are used as a hash key made
18 // from an integer. This is a simplified version of DtIntHashKey
19 // from vlutil, for use in DtNodeMap. Differences -- does not have
20 // a string representation; includes a default constructor.
21 
23 {
24 public:
25 
26  // default constructor
27  DtGdbHashKey();
28 
29  // constructor
30  DtGdbHashKey(unsigned long num);
31 
32  // destructor
33  virtual ~DtGdbHashKey();
34 
35  // copy constructor
36  DtGdbHashKey(const DtGdbHashKey& orig);
37 
38  // assignment operator
39  DtGdbHashKey& operator=(const DtGdbHashKey& orig);
40 
41  // get the string representation of this key
42  virtual const DtString stringRep() const;
43 
44  // make a copy of this hash key
45  virtual DtBaseHashKey* clone() const;
46 
47 protected:
48 
49  // compute the hashed value for this key
50  virtual DtU32 computeHashValue();
51 
52 protected:
53 
54  unsigned long myNum;
55 
56 };
57 
59  DtBaseHashKey(),
60  myNum(0)
61 {
62 }
63 
65 {
66 }
67 
68 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)