HashTableKey_StringId Class Reference
[Containers]
Hash table key implementation for string keys.
More...
Inheritance diagram for HashTableKey_StringId:

Public Member Functions | |
| HashTableKey_StringId () | |
| HashTableKey_StringId (StringId stringId) | |
| virtual StringId | GetType () const |
| unsigned int | GetHash () const |
| bool | Compare (const HashTableKey *key) const |
| StringId | GetStringId () const |
Detailed Description
Hash table key implementation for string keys.Hash table key implementation for string keys
Definition at line 20 of file HashTableKey_StringId.h.
Constructor & Destructor Documentation
| HashTableKey_StringId::HashTableKey_StringId | ( | ) |
Definition at line 7 of file HashTableKey_StringId.cpp.
| HashTableKey_StringId::HashTableKey_StringId | ( | StringId | stringId | ) |
Constructor
- Parameters:
-
stringId String value that this key should represent
Definition at line 14 of file HashTableKey_StringId.cpp.
Member Function Documentation
| StringId HashTableKey_StringId::GetType | ( | ) | const [virtual] |
Used to find out the specific type of HashTableKey that this class implements
- Returns:
- A string id ("HashTableKey_StringId") uniquely identifying this key type
Implements HashTableKey.
Definition at line 53 of file HashTableKey_StringId.cpp.
| unsigned int HashTableKey_StringId::GetHash | ( | ) | const [virtual] |
Gets the hash number for this key
- Returns:
- The hash number for this key
Implements HashTableKey.
Definition at line 22 of file HashTableKey_StringId.cpp.
| bool HashTableKey_StringId::Compare | ( | const HashTableKey * | key | ) | const [virtual] |
Compares this key with the specified key.
- Returns:
- True if the two keys are identical, false if they are not
Implements HashTableKey.
Definition at line 38 of file HashTableKey_StringId.cpp.
| StringId HashTableKey_StringId::GetStringId | ( | ) | const |
Gets the actual string id used for this key
- Returns:
- The string id used for this key
Definition at line 30 of file HashTableKey_StringId.cpp.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
