|
NVTX C++ API Reference 1.0
C++ convenience wrappers for NVTX v3 C API
|
Describes the attributes of a NVTX event. More...
#include <nvtx3.hpp>
Public Types | |
| using | value_type = nvtxEventAttributes_t |
Public Member Functions | |
| constexpr | event_attributes () noexcept |
Default constructor creates an event_attributes with no category, color, payload, nor message. | |
| template<typename... Args> | |
| event_attributes (category const &c, Args const &... args) noexcept | |
Variadic constructor where the first argument is a category. | |
| template<typename... Args> | |
| event_attributes (color const &c, Args const &... args) noexcept | |
Variadic constructor where the first argument is a color. | |
| template<typename... Args> | |
| event_attributes (payload const &p, Args const &... args) noexcept | |
Variadic constructor where the first argument is a payload. | |
| template<typename... Args> | |
| event_attributes (message const &m, Args const &... args) noexcept | |
Variadic constructor where the first argument is a message. | |
| event_attributes (event_attributes const &)=default | |
| event_attributes & | operator= (event_attributes const &)=default |
| event_attributes (event_attributes &&)=default | |
| event_attributes & | operator= (event_attributes &&)=default |
| constexpr value_type const * | get () const noexcept |
| Get raw pointer to underlying NVTX attributes object. | |
Describes the attributes of a NVTX event.
NVTX events can be customized via four "attributes":
color.message.payload.category.These component attributes are specified via an event_attributes object. See nvtx3::color, nvtx3::message, nvtx3::payload, and nvtx3::category for how these individual attributes are constructed.
While it is possible to specify all four attributes, it is common to want to only specify a subset of attributes and use default values for the others. For convenience, event_attributes can be constructed from any number of attribute components in any order.
Example:
| using nvtx3::v1::event_attributes::value_type = nvtxEventAttributes_t |
|
inlineconstexprnoexcept |
Default constructor creates an event_attributes with no category, color, payload, nor message.
|
inlineconstexprnoexcept |