#include <Puma/StrHashKey.h>
◆ StrHashKey()
Puma::StrHashKey::StrHashKey |
( |
int |
magic, |
|
|
const char * |
str, |
|
|
int |
len |
|
) |
| |
|
inline |
Construct a new string hash table key.
The input string is copied.
- Parameters
-
magic | The hash value. |
str | The string. |
len | The length of the string. |
◆ ~StrHashKey()
Puma::StrHashKey::~StrHashKey |
( |
| ) |
|
|
inline |
Destroy the hash table key.
Frees the string copy.
◆ c_str()
const char * Puma::StrHashKey::c_str |
( |
| ) |
const |
|
inline |
Get the string.
- Returns
- The string.
◆ getMagic()
unsigned int Puma::StrHashKey::getMagic |
( |
| ) |
const |
|
inline |
Get the hash value of the string.
- Returns
- The hash value.
◆ length()
unsigned int Puma::StrHashKey::length |
( |
| ) |
const |
|
inline |
Get the length of the string.
- Returns
- The string's length.