|
bactria
0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
|
The incident type. More...
#include <Incident.hpp>
Public Member Functions | |
| Incident ()=default | |
| Default constructor. More... | |
| Incident (std::string key, TValue value) | |
| Constructor. More... | |
| Incident (Incident const &other) | |
| Copy constructor. More... | |
| auto | operator= (Incident const &rhs) -> Incident & |
| Copy-assignment operator. More... | |
| Incident (Incident &&other) noexcept | |
| Move constructor. More... | |
| auto | operator= (Incident &&rhs) noexcept -> Incident & |
| Move-assignment operator. More... | |
| ~Incident ()=default | |
| Destructor. | |
Friends | |
| template<typename... TIncidents> | |
| class | Report |
The incident type.
Users can define their own metrics by recording incidents. These are key-value pairs. The key is always a user-defined string, the value must be an arithmetic type or a std::string.
| TValue | The value recorded by the incident. |
|
default |
Default constructor.
Constructs an Incident with the key BACTRIA_INCIDENT and a default-initialized value.
|
inline |
Constructor.
Constructs an Incident with the key key and the value value.
| key | The key to store the value under. |
| value | The value to store. |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Move-assignment operator.
Moves the contents of rhs into this. After the move, this will have taken over the contents of rhs, while rhs is in an undefined state.
| rhs |
|
inline |
Copy-assignment operator.
Copies the contents of rhs into this. After the copy, both this and rhs will contain identical copies of the key and the value.
| rhs | The Incident to copy from. |