VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nodeMap.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: nodeMap.h,v $ $Revision: 1.9 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef nodeMap_H_
10 #define nodeMap_H_
11 
12 #include "gdb/gdbDefines.h"
13 #include <vlutil/vlNetTypes.h>
14 #include <vlutil/vlHashlist.h>
15 #include "gdb/gdbHashKey.h"
16 
17 // forward declaration
18 class DtGdbNode;
19 
20 class DT_DLL_gdb DtNodeMap: public DtHashlist
21 {
22  public:
23 
24  // constructor
25  DtNodeMap();
26 
27  // destructor
28  virtual ~DtNodeMap();
29 
30  // checks to see if there is an entry corresponding
31  // to input pointer.
32  DtGdbNode* lookupNewNode(int oldMemAddress);
33 
34  // determines if there is an entry in the hashtable
35  // corresponding to the pointer.
36  bool nodeAlreadyInMap(const DtGdbNode* n);
37 
38  // makes an entry in the hashtable
39  void associate(DtNetInt32 oldMemAddress, DtGdbNode* n);
40 
41  protected:
42 
43  static const int theAssocTableCapacity;
44 
45  protected:
46 
47  //maintain an array of the keys you enter in the
48  //hashtable so you can delete them.
49  unsigned int myTableSize;
50 };
51 
52 #endif
53 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)