![]() |
VR-Link API Documentation for HLA 1.3
|
DtBaseHashKey is an abstract base class for hash keys. More...
Inheritance diagram for DtBaseHashKey:
Collaboration diagram for DtBaseHashKey:Public Member Functions | |
| 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. | |
| virtual DtBaseHashKey * | clone () const =0 |
| Make a copy of this hash key. | |
| virtual const DtString | stringRep () const =0 |
| 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 ()=0 |
| Compute the hashed value for this key. | |
Protected Attributes | |
| bool | myHashValueIsComputed |
| myHashValueIsComputed is modified in hashValue() | |
| DtU32 | myHashValue |
| myHashValue is modified in the const function hashValue() | |
DtBaseHashKey is an abstract base class for hash keys.
DtHashlist has been deprecated, and replaced by std::map. This
default constructor
| virtual DtBaseHashKey::~DtBaseHashKey | ( | ) | [virtual] |
destructor
| DtBaseHashKey::DtBaseHashKey | ( | const DtBaseHashKey & | orig | ) |
copy constructor
| virtual DtBaseHashKey* DtBaseHashKey::clone | ( | ) | const [pure virtual] |
Make a copy of this hash key.
Implemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, and DtSystemHashKey.
| virtual DtU32 DtBaseHashKey::computeHashValue | ( | ) | [protected, pure virtual] |
Compute the hashed value for this key.
Implemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, and DtSystemHashKey.
| virtual bool DtBaseHashKey::equalTo | ( | const DtBaseHashKey & | otherKey | ) | const [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.
| virtual DtU32 DtBaseHashKey::hashValue | ( | ) | const [virtual] |
Get the hashed value for this key.
This may modify myHashValueIsComputed and myHashValue
| virtual bool DtBaseHashKey::operator!= | ( | const DtBaseHashKey & | other | ) | const [virtual] |
equality operator
| DtBaseHashKey& DtBaseHashKey::operator= | ( | const DtBaseHashKey & | orig | ) |
assignment operator
| virtual bool DtBaseHashKey::operator== | ( | const DtBaseHashKey & | other | ) | const [virtual] |
equality operator
Reimplemented in DtObjectIdHashKey, and DtEntityIdentifierHashKey.
| virtual const DtString DtBaseHashKey::stringRep | ( | ) | const [pure virtual] |
Get the string representation of this key.
Implemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, and DtSystemHashKey.
DtU32 DtBaseHashKey::myHashValue [mutable, protected] |
myHashValue is modified in the const function hashValue()
bool DtBaseHashKey::myHashValueIsComputed [mutable, protected] |
myHashValueIsComputed is modified in hashValue()