![]() |
VR-Link API Documentation for HLA Evolved
|
DtBaseHashKey is an abstract base class for hash keys. More...
Inheritance diagram for DtBaseHashKey:
Collaboration diagram for DtBaseHashKey:Public Member Functions | |
| DtBaseHashKey () | |
| default constructor More... | |
| virtual | ~DtBaseHashKey () |
| destructor More... | |
| DtBaseHashKey (const DtBaseHashKey &orig) | |
| copy constructor More... | |
| DtBaseHashKey & | operator= (const DtBaseHashKey &orig) |
| assignment operator More... | |
| virtual bool | operator== (const DtBaseHashKey &other) const |
| equality operator More... | |
| virtual bool | operator!= (const DtBaseHashKey &other) const |
| equality operator More... | |
| virtual DtU32 | hashValue () const |
| Get the hashed value for this key. More... | |
| virtual DtHashKeyType | hashKeyType () const |
| Get the type of HashKey. More... | |
| virtual DtBaseHashKey * | clone () const =0 |
| Make a copy of this hash key. More... | |
| virtual const DtString | stringRep () const =0 |
| Get the string representation of this key. More... | |
| virtual bool | equalTo (const DtBaseHashKey &otherKey) const |
| Subclasses may override this to provide an optimized comparison between two keys. More... | |
Protected Member Functions | |
| virtual DtU64 | computeHashValue ()=0 |
| Compute the hashed value for this key. More... | |
Protected Attributes | |
| bool | myHashValueIsComputed |
| myHashValueIsComputed is modified in hashValue() More... | |
| DtU32 | myHashValue |
| myHashValue is modified in the const function hashValue() More... | |
DtBaseHashKey is an abstract base class for hash keys.
DtHashlist has been deprecated, and replaced by std::map. This
| DtBaseHashKey::DtBaseHashKey | ( | ) |
default constructor
|
virtual |
destructor
| DtBaseHashKey::DtBaseHashKey | ( | const DtBaseHashKey & | orig | ) |
copy constructor
|
pure virtual |
Make a copy of this hash key.
Implemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, DtIFFSystemHashKey, and DtSystemHashKey.
|
protectedpure virtual |
Compute the hashed value for this key.
Implemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtIFFSystemHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, and DtSystemHashKey.
|
virtual |
Subclasses may override this to provide an optimized comparison between two keys.
Base implementation calls operator== which uses strings to compare.
Reimplemented in DtPtrHashKey, and DtIntHashKey.
|
inlinevirtual |
Get the type of HashKey.
Reimplemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, DtIFFSystemHashKey, and DtSystemHashKey.
References DtBaseHashKeyType.
|
virtual |
Get the hashed value for this key.
This may modify myHashValueIsComputed and myHashValue
|
virtual |
equality operator
| DtBaseHashKey& DtBaseHashKey::operator= | ( | const DtBaseHashKey & | orig | ) |
assignment operator
|
virtual |
equality operator
Reimplemented in DtObjectIdHashKey, and DtEntityIdentifierHashKey.
|
pure virtual |
Get the string representation of this key.
Implemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, DtIFFSystemHashKey, and DtSystemHashKey.
|
mutableprotected |
myHashValue is modified in the const function hashValue()
|
mutableprotected |
myHashValueIsComputed is modified in hashValue()