![]() |
VR-Link API Documentation for HLA Evolved
|
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 | |
| DtPtrHashKey & | operator= (const DtPtrHashKey &orig) |
| assignment operator | |
| virtual DtBaseHashKey * | clone () 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 |
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 *>
| DtPtrHashKey::DtPtrHashKey | ( | void * | ptr | ) |
default constructor
| virtual DtPtrHashKey::~DtPtrHashKey | ( | ) | [virtual] |
destructor
| DtPtrHashKey::DtPtrHashKey | ( | const DtPtrHashKey & | orig | ) |
copy constructor
| 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.
void* DtPtrHashKey::myPtr [protected] |