VR-Link API Documentation for HLA 1516
Public Member Functions | Protected Member Functions | Protected Attributes
DtPtrHashKey Class Reference

DtPtrHashKey is used as an index into DtHashList where the key is a pointer. More...

+ Inheritance diagram for DtPtrHashKey:
+ Collaboration diagram for DtPtrHashKey:

List of all members.

Public Member Functions

 DtPtrHashKey (void *ptr)
 default constructor
virtual ~DtPtrHashKey ()
 destructor
 DtPtrHashKey (const DtPtrHashKey &orig)
 copy constructor
DtPtrHashKeyoperator= (const DtPtrHashKey &orig)
 assignment operator
virtual DtBaseHashKeyclone () const
 Make a copy of this hash key.
virtual void * value () const
 Get hash key value.
virtual const DtString stringRep () const
 get the string representation of this key
virtual bool equalTo (const DtBaseHashKey &otherKey) const
 Subclasses may override this to provide an optimized comparison between two keys.

Protected Member Functions

virtual DtU32 computeHashValue ()
 Compute the hashed value for this key.

Protected Attributes

void * myPtr

Detailed Description

DtPtrHashKey is used as an index into DtHashList where the key is a pointer.

Not 64 bit safe

DtHashlist has been deprecated, and replaced by std::map. This

Instances of DtIntHashKey are used as a hash key made from an void*. This class is not safe to use with 64 bit pointers. If you want to do hash using pointers, please use a std::map<void *>

Deprecated:
This class has been deprecated, see DtHashList

Constructor & Destructor Documentation

DtPtrHashKey::DtPtrHashKey ( void *  ptr)

default constructor

virtual DtPtrHashKey::~DtPtrHashKey ( ) [virtual]

destructor

copy constructor


Member Function Documentation

virtual DtBaseHashKey* DtPtrHashKey::clone ( ) const [virtual]

Make a copy of this hash key.

Implements DtBaseHashKey.

virtual DtU32 DtPtrHashKey::computeHashValue ( ) [protected, virtual]

Compute the hashed value for this key.

Implements DtBaseHashKey.

virtual bool DtPtrHashKey::equalTo ( const DtBaseHashKey otherKey) const [virtual]

Subclasses may override this to provide an optimized comparison between two keys.

Reimplemented from DtBaseHashKey.

DtPtrHashKey& DtPtrHashKey::operator= ( const DtPtrHashKey orig)

assignment operator

virtual const DtString DtPtrHashKey::stringRep ( ) const [virtual]

get the string representation of this key

Implements DtBaseHashKey.

virtual void* DtPtrHashKey::value ( ) const [virtual]

Get hash key value.


Member Data Documentation

void* DtPtrHashKey::myPtr [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)