bactria
0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
|
Defines a category. More...
#include <Category.hpp>
Public Member Functions | |
Category ()=default | |
The default constructor. More... | |
Category (std::uint32_t id, std::string name) | |
The constructor. More... | |
Category (Category const &other)=default | |
The copy constructor. More... | |
auto | operator= (Category const &rhs) -> Category &=default |
The copy assignment operator. More... | |
Category (Category &&other)=default | |
The move constructor. More... | |
auto | operator= (Category &&rhs) -> Category &=default |
The move assignment operator. More... | |
~Category ()=default | |
The destructor. More... | |
auto | get_id () const noexcept -> std::uint32_t |
The ID getter method. More... | |
auto | get_name () const noexcept -> std::string const & |
The name getter method. More... | |
auto | get_c_name () const noexcept -> char const * |
The C string name getter method. More... | |
Defines a category.
This class can be used for defining own categories. Categories can later be used for filtering out Ranges and Events. Each category is defined by an unique id and a name.
|
default |
The default constructor.
This constructs a default Category with the ID 0
and the name BACTRIA_GENERIC_CATEGORY
.
|
inline |
The constructor.
This constructs a Category with the ID id and the name name.
|
default |
The copy constructor.
Constructs a category with the same properties as other. this
and other will share the same name and ID after construction.
other | The Category to copy from. |
|
default |
The move constructor.
Constructs a category by moving other's properties into this. this will be identical to other's state before the move. other will be in an undefined state after construction.
other | The Category to move into this. |
|
default |
The destructor.
Destroys the contents of this. this will be in an undefined state after destruction.
|
inlinenoexcept |
The C string name getter method.
|
inlinenoexcept |
The ID getter method.
|
inlinenoexcept |
The name getter method.
The move assignment operator.
Moves the properties of rhs into this. this will be identical to rhs's state before the move. rhs will be in an undefined state after the assignment.
rhs | The Category to move into this. |
The copy assignment operator.
Copies the properties of rhs into this
. this
and other will share the same name and ID after the assignment.
rhs | The Category to copy from. |