NVTX C++ API Reference 1.0
C++ convenience wrappers for NVTX v3 C API
|
Handle used for correlating explicit range start and end events. More...
#include <nvtx3.hpp>
Public Types | |
using | value_type = nvtxRangeId_t |
Type used for the handle's value. | |
Public Member Functions | |
constexpr | range_handle (value_type id) noexcept |
Construct a range_handle from the given id. | |
constexpr | range_handle () noexcept=default |
Constructs a null range handle. | |
constexpr | operator bool () const noexcept |
Checks whether this handle is null. | |
constexpr | range_handle (std::nullptr_t) noexcept |
Implicit conversion from nullptr constructs a null handle. | |
constexpr value_type | get_value () const noexcept |
Returns the range_handle 's value. | |
Handle used for correlating explicit range start and end events.
A handle is "null" if it does not correspond to any range.
using nvtx3::v1::range_handle::value_type = nvtxRangeId_t |
|
inlineexplicitconstexprnoexcept |
Construct a range_handle
from the given id.
|
constexprdefaultnoexcept |
Constructs a null range handle.
A null range_handle corresponds to no range. Calling end_range
on a null handle is undefined behavior when a tool is active.
|
inlineconstexprnoexcept |
Implicit conversion from nullptr
constructs a null handle.
Satisfies the "NullablePointer" requirement to make range_handle
comparable with nullptr
.
|
inlineconstexprnoexcept |
Returns the range_handle
's value.
|
inlineexplicitconstexprnoexcept |
Checks whether this handle is null.
Provides contextual conversion to bool
.