![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: listMap.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef listMap_H_ 00010 #define listMap_H_ 00011 00012 #include "gdb/gdbDefines.h" 00013 #include <vlutil/vlNetTypes.h> 00014 00015 #include <vlutil/vlHashlist.h> 00016 #include "gdb/gdbHashKey.h" 00017 00018 // forward declaration 00019 class DtGdbNode; 00020 00021 class DT_DLL_gdb DtListMap: public DtHashlist 00022 { 00023 public: 00024 00025 // constructor 00026 DtListMap(); 00027 00028 // destructor 00029 virtual ~DtListMap(); 00030 00031 // checks to see if there is an entry corresponding 00032 // to input pointer. 00033 int lookupOffset(int listMemAddress); 00034 00035 // determines if there is an entry in the hashtable 00036 // corresponding to the pointer. 00037 bool listAlreadyInMap(int listMemAddress); 00038 00039 // makes an entry in the hashtable 00040 void associate(DtNetInt32 listMemAddress, int offset); 00041 00042 protected: 00043 00044 static const int theAssocTableCapacity; 00045 00046 protected: 00047 00048 //maintain an array of the keys you enter in the 00049 //hashtable so you can delete them. 00050 unsigned int myTableSize; 00051 }; 00052 00053 #endif 00054