NVTX C++ API Reference 1.0
C++ convenience wrappers for NVTX v3 C API
|
Represents the registered schema for a payload struct. More...
#include <nvtx3.hpp>
Public Member Functions | |
schema (schema const &)=delete | |
schema & | operator= (schema const &)=delete |
schema (schema &&)=delete | |
schema & | operator= (schema &&)=delete |
schema (uint64_t id) | |
Constructs a schema object directly from a schema ID. | |
uint64_t | get_handle () const noexcept |
Return the underlying C handle of the schema. | |
Static Public Member Functions | |
template<typename T > | |
static schema const & | get () noexcept |
Gets the schema instance for a specific payload struct type. | |
Represents the registered schema for a payload struct.
This class encapsulates the schema ID obtained by registering a payload struct using nvtxPayloadSchemaRegister
. The primary mechanism for obtaining an instance is via the static template function get<T>()
, which must be specialized for each payload struct type T
using the NVTX3_DEFINE_SCHEMA_GET
(NVTX3_V1_DEFINE_SCHEMA_GET()
) macro.
The schema ID is used internally when constructing payload_data
objects.
|
inlineexplicit |
|
inlinestaticnoexcept |
Gets the schema instance for a specific payload struct type.
This function relies on template specialization. Users must provide a specialization for each payload struct type T
using the NVTX3_DEFINE_SCHEMA_GET
(NVTX3_V1_DEFINE_SCHEMA_GET()
) macro.
T | The payload struct type for which to get the schema. |
T
.
|
inlinenoexcept |