8#ifndef PXR_BASE_TRACE_DYNAMIC_KEY_H
9#define PXR_BASE_TRACE_DYNAMIC_KEY_H
12#include "pxr/base/trace/staticKeyData.h"
15PXR_NAMESPACE_OPEN_SCOPE
44 return _key == other._key;
68PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
char const * GetText() const
Return the text that this token represents.
size_t Hash() const
Return a size_t hash for this token.
This class stores data used to create dynamic keys which can be referenced in TraceEvent instances.
const TraceStaticKeyData & GetData() const
Returns a reference to TraceStaticKeyData.
TraceDynamicKey(const char *name)
Constructor for C string.
TraceDynamicKey(TfToken name)
Constructor for TfToken.
size_t Hash() const
Return a cached hash code for this key.
TraceDynamicKey(const std::string &name)
Constructor for string.
bool operator==(const TraceDynamicKey &other) const
Equality operator.
This class holds data necessary to create keys for TraceEvent instances.
A Hash functor which uses the cached hash which may be used to store keys in a TfHashMap.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...