NVTX++
3.0
C++ convenience wrappers for NVTX.
|
A numerical value that can be associated with an NVTX event via its event_attributes
.
More...
#include <nvtx3.hpp>
Public Types | |
using | value_type = typename nvtxEventAttributes_v2::payload_t |
Public Member Functions | |
NVTX3_RELAXED_CONSTEXPR | payload (int64_t value) noexcept |
Construct a payload from a signed, 8 byte integer. More... | |
NVTX3_RELAXED_CONSTEXPR | payload (int32_t value) noexcept |
Construct a payload from a signed, 4 byte integer. More... | |
NVTX3_RELAXED_CONSTEXPR | payload (uint64_t value) noexcept |
Construct a payload from an unsigned, 8 byte integer. More... | |
NVTX3_RELAXED_CONSTEXPR | payload (uint32_t value) noexcept |
Construct a payload from an unsigned, 4 byte integer. More... | |
NVTX3_RELAXED_CONSTEXPR | payload (float value) noexcept |
Construct a payload from a single-precision floating point value. More... | |
NVTX3_RELAXED_CONSTEXPR | payload (double value) noexcept |
Construct a payload from a double-precision floating point value. More... | |
NVTX3_RELAXED_CONSTEXPR value_type | get_value () const noexcept |
Return the union holding the value of the payload. | |
NVTX3_RELAXED_CONSTEXPR nvtxPayloadType_t | get_type () const noexcept |
Return the information about the type the union holds. | |
A numerical value that can be associated with an NVTX event via its event_attributes
.
Example:
|
inlineexplicitnoexcept |
Construct a payload
from a signed, 8 byte integer.
value | Value to use as contents of the payload |
|
inlineexplicitnoexcept |
Construct a payload
from a signed, 4 byte integer.
value | Value to use as contents of the payload |
|
inlineexplicitnoexcept |
Construct a payload
from an unsigned, 8 byte integer.
value | Value to use as contents of the payload |
|
inlineexplicitnoexcept |
Construct a payload
from an unsigned, 4 byte integer.
value | Value to use as contents of the payload |
|
inlineexplicitnoexcept |
Construct a payload
from a single-precision floating point value.
value | Value to use as contents of the payload |
|
inlineexplicitnoexcept |
Construct a payload
from a double-precision floating point value.
value | Value to use as contents of the payload |