![]() |
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 DtHashKeyType | hashKeyType () const |
| Get the type of HashKey. | |
| 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 | |
| DtBaseHashKey & | operator= (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 DtU64 | 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() | |
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 |
destructor
| DtPtrHashKey::DtPtrHashKey | ( | const DtPtrHashKey & | orig | ) |
copy constructor
|
virtual |
Make a copy of this hash key.
Implements DtBaseHashKey.
|
protectedvirtual |
Compute the hashed value for this key.
Implements DtBaseHashKey.
|
virtual |
Subclasses may override this to provide an optimized comparison between two keys.
Reimplemented from DtBaseHashKey.
|
inlinevirtual |
| DtPtrHashKey& DtPtrHashKey::operator= | ( | const DtPtrHashKey & | orig | ) |
assignment operator
|
virtual |
get the string representation of this key
Implements DtBaseHashKey.
|
virtual |
Get hash key value.
|
protected |