VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gdbHashKey.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
8 #include "gdb/gdbDefines.h"
9 #include <vlutil/vlHashKeys.h>
10 
11 // class DtGdbHashKey:
12 //
13 // Instances of DtGdbHashKey are used as a hash key made
14 // from an integer. This is a simplified version of DtIntHashKey
15 // from vlutil, for use in DtNodeMap. Differences -- does not have
16 // a string representation; includes a default constructor.
17 
19 {
20 public:
21 
22  // default constructor
23  DtGdbHashKey();
24 
25  // constructor
26  DtGdbHashKey(unsigned long num);
27 
28  // destructor
29  virtual ~DtGdbHashKey();
30 
31  // copy constructor
32  DtGdbHashKey(const DtGdbHashKey& orig);
33 
34  // assignment operator
35  DtGdbHashKey& operator=(const DtGdbHashKey& orig);
36 
37  // get the string representation of this key
38  virtual const DtString stringRep() const;
39 
40  // make a copy of this hash key
41  virtual DtBaseHashKey* clone() const;
42 
43 protected:
44 
45  // compute the hashed value for this key
46  virtual DtU64 computeHashValue();
47 
48 protected:
49  DtU64 myNum;
50 };
51 
53  DtBaseHashKey(),
54  myNum(0)
55 {
56 }
57 
59 {
60 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)