VR-Link API Documentation for DIS
List of all members | 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:

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.
- Public Member Functions inherited from DtBaseHashKey
 DtBaseHashKey ()
 default constructor
virtual ~DtBaseHashKey ()
 destructor
 DtBaseHashKey (const DtBaseHashKey &orig)
 copy constructor
DtBaseHashKeyoperator= (const DtBaseHashKey &orig)
 assignment operator
virtual bool operator== (const DtBaseHashKey &other) const
 equality operator
virtual bool operator!= (const DtBaseHashKey &other) const
 equality operator
virtual DtU32 hashValue () const
 Get the hashed value for this key.

Protected Member Functions

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

Protected Attributes

void * myPtr
- Protected Attributes inherited from DtBaseHashKey
bool myHashValueIsComputed
 myHashValueIsComputed is modified in hashValue()
DtU32 myHashValue
 myHashValue is modified in the const function hashValue()

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

DtPtrHashKey::DtPtrHashKey ( const DtPtrHashKey orig)

copy constructor

Member Function Documentation

virtual DtBaseHashKey* DtPtrHashKey::clone ( ) const
virtual

Make a copy of this hash key.

Implements DtBaseHashKey.

virtual DtU32 DtPtrHashKey::computeHashValue ( )
protectedvirtual

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 Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)