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" 34 PXR_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;
100 PXR_NAMESPACE_CLOSE_SCOPE
102 #endif // PXR_BASE_TRACE_STATIC_KEY_DATA_H This is a helper class for the constructors of TraceStaticKeyData.
constexpr StringLiteral()
Default Constructor.
This class stores data used to create dynamic keys which can be referenced in TraceEvent instances.
TRACE_API std::string GetString() const
Returns the string representation of the key data.
TRACE_API bool operator==(const TraceStaticKeyData &other) const
Equality comparison. Inequality is also defined.
constexpr TraceStaticKeyData(const StringLiteral func, const StringLiteral prettyFunc, const StringLiteral name=StringLiteral())
Constructor for a function (func, prettyFunc) and optional scope name.
constexpr StringLiteral(const char(&s)[N])
Constructor from string literals.
constexpr TraceStaticKeyData(const StringLiteral name)
Constructor for a name.
This class holds data necessary to create keys for TraceEvent instances.