VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
gdb
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
18
class
DT_DLL_gdb
DtGdbHashKey
:
public
DtBaseHashKey
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
52
inline
DtGdbHashKey::DtGdbHashKey
() :
53
DtBaseHashKey
(),
54
myNum(0)
55
{
56
}
57
58
inline
DtGdbHashKey::~DtGdbHashKey
()
59
{
60
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)