Ptex: StringKey Class Reference

Ptex

Public Member Functions | Private Member Functions | Private Attributes | List of all members
StringKey Class Reference

`#include <PtexHashMap.h>`

## Public Member Functions
| StringKey ()
| StringKey (const char *val)
| ~StringKey ()
void | copy (volatile StringKey &key) volatile
void | move (volatile StringKey &key) volatile
bool | matches (const StringKey &key) volatile
bool | isEmpty () volatile
uint32_t | hash () volatile

## Private Member Functions
void | operator= (const StringKey &key)
| StringKey (const StringKey &key)

## Private Attributes
const char *volatile | _val
uint32_t volatile | _len
uint32_t volatile | _hash
bool volatile | _ownsVal

## Detailed Description

Definition at line 82 of file PtexHashMap.h.

## Constructor & Destructor Documentation

## ◆ StringKey() [1/3]

StringKey::StringKey | ( | const StringKey & | key | ) |
| private

## ◆ StringKey() [2/3]

StringKey::StringKey | ( |  | ) |
| inline

Definition at line 93 of file PtexHashMap.h.

## ◆ StringKey() [3/3]

StringKey::StringKey | ( | const char * | val | ) |
| inline

Definition at line 94 of file PtexHashMap.h.

References memHash().

## ◆ ~StringKey()

StringKey::~StringKey | ( |  | ) |
| inline

Definition at line 102 of file PtexHashMap.h.

References _val.

## Member Function Documentation

## ◆ copy()

void StringKey::copy | ( | volatile StringKey & | key | ) | volatile
| inline

Definition at line 104 of file PtexHashMap.h.

References _hash, _len, and _val.

## ◆ hash()

uint32_t StringKey::hash | ( |  | ) | volatile
| inline

Definition at line 130 of file PtexHashMap.h.

References _hash.

Referenced by PtexHashMap< StringKey, PtexCachedReader * >::get(), and PtexHashMap< StringKey, PtexCachedReader * >::tryInsert().

## ◆ isEmpty()

bool StringKey::isEmpty | ( |  | ) | volatile
| inline

Definition at line 128 of file PtexHashMap.h.

## ◆ matches()

bool StringKey::matches | ( | const StringKey & | key | ) | volatile
| inline

Definition at line 123 of file PtexHashMap.h.

References _hash, _len, _val, and memCompare().

## ◆ move()

void StringKey::move | ( | volatile StringKey & | key | ) | volatile
| inline

Definition at line 114 of file PtexHashMap.h.

References _hash, _len, _ownsVal, and _val.

## ◆ operator=()

void StringKey::operator= | ( | const StringKey & | key | ) |
| private

## Member Data Documentation

## ◆ _hash

uint32_t volatile StringKey::_hash
| private

Definition at line 86 of file PtexHashMap.h.

Referenced by copy(), hash(), matches(), and move().

## ◆ _len

uint32_t volatile StringKey::_len
| private

Definition at line 85 of file PtexHashMap.h.

Referenced by copy(), matches(), and move().

## ◆ _ownsVal

bool volatile StringKey::_ownsVal
| private

Definition at line 87 of file PtexHashMap.h.

Referenced by move().

## ◆ _val

const char* volatile StringKey::_val
| private

Definition at line 84 of file PtexHashMap.h.

Referenced by copy(), matches(), move(), and ~StringKey().

The documentation for this class was generated from the following file:

- PtexHashMap.h