bactria
0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
|
The abstract base class for markers. More...
#include <Marker.hpp>
Public Member Functions | |
Marker ()=default | |
Default constructor. More... | |
Marker (std::string name, std::uint32_t color, Category category) | |
Constructor. More... | |
Marker (Marker const &other)=default | |
Copy constructor. More... | |
auto | operator= (Marker const &rhs) -> Marker &=default |
Copy-assignment operator. More... | |
Marker (Marker &&other)=default | |
Move constructor. More... | |
auto | operator= (Marker &&rhs) -> Marker &=default |
Move-assignment operator. More... | |
virtual | ~Marker ()=default |
Destroy the Marker object. | |
auto | get_name () const noexcept -> std::string const & |
Return the marker's name. More... | |
auto | get_c_name () const noexcept -> char const * |
Return the marker's name (C string). More... | |
auto | get_color () const noexcept -> std::uint32_t |
Return the marker's color. More... | |
auto | get_category () const noexcept -> Category const & |
Return the marker's category. More... | |
Protected Attributes | |
std::string | m_name {"BACTRIA_GENERIC_MARKER"} |
The name assigned to the Marker. More... | |
std::uint32_t | m_color {color::orange} |
The color assigned to the Marker. More... | |
Category | m_category {} |
The Category assigned to the Marker. More... | |
The abstract base class for markers.
This class serves as abstract base for Events and Ranges. It should not be used directly by the user.
|
default |
Default constructor.
Constructs a marker with the name BACTRIA_GENERIC_MARKER
, the color bactria::ranges::color::orange and a default-initialized category.
|
inline |
Constructor.
Constructs a marker with the name name, the color color and the category category.
name | The name shown in the visual output. |
color | The color shown in the visual output. |
category | The category. |
|
default |
|
default |
|
inlinenoexcept |
Return the marker's name (C string).
Returns the name assigned to this
Marker as a C string.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Move-assignment operator.
Moves the contents of rhs into this
. After the move, this
will have taken over the internals from rhs which is in an undefined state afterwards.
rhs | The Marker to move into this . |
Copy-assignment operator.
Copies the contents of rhs into this
. After the copy, this
and rhs will have copies of the same name, color and category.
rhs | The Marker to copy from. |
|
protected |
|
protected |
The color assigned to the Marker.
Users should not rely on this member to be stable. It may change between versions without further notice.
|
protected |
The name assigned to the Marker.
Users should not rely on this member to be stable. It may change between versions without further notice.