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