VR-Forces 4.0.4 Class Documentation
include/gdb/gdbHashKey.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1998 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: gdbHashKey.h,v $ $Revision: 1.6 $ $State: Exp $
00007 ******************************************************************************/
00008 
00009 #ifndef gdbHashKey_H_
00010 #define gdbHashKey_H_
00011 
00012 #include "gdb/gdbDefines.h"
00013 #include <vlutil/vlHashKeys.h>
00014 
00015 // class DtGdbHashKey:
00016 //
00017 // Instances of DtGdbHashKey are used as a hash key made 
00018 // from an integer. This is a simplified version of DtIntHashKey
00019 // from vlutil, for use in DtNodeMap. Differences -- does not have
00020 // a string representation; includes a default constructor.
00021 
00022 class DT_DLL_gdb DtGdbHashKey : public DtBaseHashKey
00023 {
00024 public:
00025 
00026   // default constructor 
00027    DtGdbHashKey();
00028 
00029    // constructor
00030    DtGdbHashKey(unsigned long num);
00031 
00032    // destructor
00033    virtual ~DtGdbHashKey();
00034 
00035    // copy constructor
00036    DtGdbHashKey(const DtGdbHashKey& orig);
00037 
00038    // assignment operator
00039    DtGdbHashKey& operator=(const DtGdbHashKey& orig);
00040 
00041    // get the string representation of this key
00042    virtual const DtString stringRep() const;
00043 
00044    // make a copy of this hash key
00045    virtual DtBaseHashKey* clone() const;
00046 
00047 protected:
00048 
00049    // compute the hashed value for this key
00050    virtual DtU32 computeHashValue();
00051 
00052 protected:
00053 
00054    unsigned long myNum;
00055    
00056 };
00057 
00058 inline DtGdbHashKey::DtGdbHashKey() :
00059    DtBaseHashKey(),
00060    myNum(0)
00061 {
00062 }
00063 
00064 inline DtGdbHashKey::~DtGdbHashKey()
00065 {
00066 }
00067 
00068 #endif

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)