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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)