A numerical value that can be associated with an NVTX event via its event_attributes
.
More...
#include <nvtx3.hpp>
|
using | value_type = typename nvtxEventAttributes_v2::payload_t |
|
|
| payload (int64_t value) noexcept |
| Construct a payload from a signed, 8 byte integer.
|
|
| payload (int32_t value) noexcept |
| Construct a payload from a signed, 4 byte integer.
|
|
| payload (uint64_t value) noexcept |
| Construct a payload from an unsigned, 8 byte integer.
|
|
| payload (uint32_t value) noexcept |
| Construct a payload from an unsigned, 4 byte integer.
|
|
| payload (float value) noexcept |
| Construct a payload from a single-precision floating point value.
|
|
| payload (double value) noexcept |
| Construct a payload from a double-precision floating point value.
|
|
constexpr | payload (nvtxPayloadType_t const &type, value_type const &value) noexcept |
| Construct a payload from NVTX C API type and value.
|
|
constexpr value_type | get_value () const noexcept |
| Return the union holding the value of the payload.
|
|
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:
nvtx3::scoped_range range0{attr};
A numerical value that can be associated with an NVTX event via its event_attributes.
Definition at line 1781 of file nvtx3.hpp.
◆ value_type
using nvtx3::v1::payload::value_type = typename nvtxEventAttributes_v2::payload_t |
◆ payload() [1/7]
nvtx3::v1::payload::payload |
( |
int64_t |
value | ) |
|
|
inlineexplicitnoexcept |
Construct a payload
from a signed, 8 byte integer.
- Parameters
-
value | Value to use as contents of the payload |
Definition at line 1790 of file nvtx3.hpp.
◆ payload() [2/7]
nvtx3::v1::payload::payload |
( |
int32_t |
value | ) |
|
|
inlineexplicitnoexcept |
Construct a payload
from a signed, 4 byte integer.
- Parameters
-
value | Value to use as contents of the payload |
Definition at line 1801 of file nvtx3.hpp.
◆ payload() [3/7]
nvtx3::v1::payload::payload |
( |
uint64_t |
value | ) |
|
|
inlineexplicitnoexcept |
Construct a payload
from an unsigned, 8 byte integer.
- Parameters
-
value | Value to use as contents of the payload |
Definition at line 1812 of file nvtx3.hpp.
◆ payload() [4/7]
nvtx3::v1::payload::payload |
( |
uint32_t |
value | ) |
|
|
inlineexplicitnoexcept |
Construct a payload
from an unsigned, 4 byte integer.
- Parameters
-
value | Value to use as contents of the payload |
Definition at line 1823 of file nvtx3.hpp.
◆ payload() [5/7]
nvtx3::v1::payload::payload |
( |
float |
value | ) |
|
|
inlineexplicitnoexcept |
Construct a payload
from a single-precision floating point value.
- Parameters
-
value | Value to use as contents of the payload |
Definition at line 1835 of file nvtx3.hpp.
◆ payload() [6/7]
nvtx3::v1::payload::payload |
( |
double |
value | ) |
|
|
inlineexplicitnoexcept |
Construct a payload
from a double-precision floating point value.
- Parameters
-
value | Value to use as contents of the payload |
Definition at line 1847 of file nvtx3.hpp.
◆ payload() [7/7]
constexpr nvtx3::v1::payload::payload |
( |
nvtxPayloadType_t const & |
type, |
|
|
value_type const & |
value |
|
) |
| |
|
inlineconstexprnoexcept |
Construct a payload
from NVTX C API type and value.
- Parameters
-
type | nvtxPayloadType_t enum value indicating type of the payload |
value | nvtxEventAttributes_t::payload_t union containing payload |
Definition at line 1859 of file nvtx3.hpp.
◆ get_type()
constexpr nvtxPayloadType_t nvtx3::v1::payload::get_type |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return the information about the type the union holds.
Definition at line 1876 of file nvtx3.hpp.
◆ get_value()
constexpr value_type nvtx3::v1::payload::get_value |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return the union holding the value of the payload.
Definition at line 1870 of file nvtx3.hpp.
The documentation for this class was generated from the following file: