25#ifndef PXR_BASE_TRACE_STATIC_KEY_DATA_H
26#define PXR_BASE_TRACE_STATIC_KEY_DATA_H
29#include "pxr/base/trace/api.h"
34PXR_NAMESPACE_OPEN_SCOPE
75 , _prettyFuncName(prettyFunc.str)
83 return !(*
this == other);
93 const char* _funcName =
nullptr;
94 const char* _prettyFuncName =
nullptr;
95 const char* _name =
nullptr;
100PXR_NAMESPACE_CLOSE_SCOPE
This class stores data used to create dynamic keys which can be referenced in TraceEvent instances.
This is a helper class for the constructors of TraceStaticKeyData.
constexpr StringLiteral(const char(&s)[N])
Constructor from string literals.
constexpr StringLiteral()
Default Constructor.
This class holds data necessary to create keys for TraceEvent instances.
constexpr TraceStaticKeyData(const StringLiteral func, const StringLiteral prettyFunc, const StringLiteral name=StringLiteral())
Constructor for a function (func, prettyFunc) and optional scope name.
constexpr TraceStaticKeyData(const StringLiteral name)
Constructor for a name.
TRACE_API bool operator==(const TraceStaticKeyData &other) const
Equality comparison. Inequality is also defined.
TRACE_API std::string GetString() const
Returns the string representation of the key data.