TraceStaticKeyData Class Reference

This class holds data necessary to create keys for TraceEvent instances. More...

Classes

class  StringLiteral
 This is a helper class for the constructors of TraceStaticKeyData. More...
 

Public Member Functions

constexpr TraceStaticKeyData (const StringLiteral name)
 Constructor for a name. More...
 
constexpr TraceStaticKeyData (const StringLiteral func, const StringLiteral prettyFunc, const StringLiteral name=StringLiteral())
 Constructor for a function (func, prettyFunc) and optional scope name. More...
 
TRACE_API bool operator== (const TraceStaticKeyData &other) const
 Equality comparison. Inequality is also defined. More...
 
bool operator != (const TraceStaticKeyData &other) const
 
TRACE_API std::string GetString () const
 Returns the string representation of the key data. More...
 

Friends

class TraceDynamicKey
 

Detailed Description

This class holds data necessary to create keys for TraceEvent instances.

This class is meant to be used as constexpr static data.

Definition at line 43 of file staticKeyData.h.

Constructor & Destructor Documentation

◆ TraceStaticKeyData() [1/2]

constexpr TraceStaticKeyData ( const StringLiteral  name)
inline

Constructor for a name.

Definition at line 65 of file staticKeyData.h.

◆ TraceStaticKeyData() [2/2]

constexpr TraceStaticKeyData ( const StringLiteral  func,
const StringLiteral  prettyFunc,
const StringLiteral  name = StringLiteral() 
)
inline

Constructor for a function (func, prettyFunc) and optional scope name.

Definition at line 70 of file staticKeyData.h.

Member Function Documentation

◆ GetString()

TRACE_API std::string GetString ( ) const

Returns the string representation of the key data.

◆ operator==()

TRACE_API bool operator== ( const TraceStaticKeyData other) const

Equality comparison. Inequality is also defined.


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