bactria
0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
|
Go to the documentation of this file.
54 Category(std::uint32_t
id, std::string name) : m_id{
id}, m_name{std::move(name)}
110 auto get_id() const noexcept -> std::uint32_t
120 auto get_name() const noexcept -> std::
string const&
132 return m_name.c_str();
136 std::uint32_t m_id{0u};
137 std::string m_name{
"BACTRIA_GENERIC_CATEGORY"};
auto get_id() const noexcept -> std::uint32_t
The ID getter method.
Definition: Category.hpp:110
auto operator=(Category const &rhs) -> Category &=default
The copy assignment operator.
auto get_name() const noexcept -> std::string const &
The name getter method.
Definition: Category.hpp:120
Defines a category.
Definition: Category.hpp:39
Category()=default
The default constructor.
Category(std::uint32_t id, std::string name)
The constructor.
Definition: Category.hpp:54
~Category()=default
The destructor.
auto get_c_name() const noexcept -> char const *
The C string name getter method.
Definition: Category.hpp:130