|
Blaze 3.9
|
RAII object for function tracing. More...
#include <FunctionTrace.h>
Public Member Functions | |
Constructors | |
| FunctionTrace (const std::string &file, const std::string &function) | |
| Constructor for the FunctionTrace class. | |
Destructor | |
| ~FunctionTrace () | |
| Destructor for the FunctionTrace class. | |
Forbidden operations | |
| FunctionTrace (const FunctionTrace &)=delete | |
| FunctionTrace (FunctionTrace &&)=delete | |
| FunctionTrace & | operator= (const FunctionTrace &)=delete |
| FunctionTrace & | operator= (FunctionTrace &&)=delete |
| void * | operator new (std::size_t)=delete |
| void * | operator new[] (std::size_t)=delete |
| void * | operator new (std::size_t, const std::nothrow_t &) noexcept=delete |
| void * | operator new[] (std::size_t, const std::nothrow_t &) noexcept=delete |
| void | operator delete (void *) noexcept=delete |
| void | operator delete[] (void *) noexcept=delete |
| void | operator delete (void *, const std::nothrow_t &) noexcept=delete |
| void | operator delete[] (void *, const std::nothrow_t &) noexcept=delete |
Private Attributes | |
Member variables | |
| std::string | file_ |
| The file name the traced function is contained in. | |
| std::string | function_ |
| The name of the traced function. | |
RAII object for function tracing.
The FunctionTrace class is an auxiliary helper class for the tracing of function calls. It is implemented as a wrapper around std::cerr and is responsible for the atomicity of the output of trace information.
|
inline |
Constructor for the FunctionTrace class.
| file | The name of the file the traced function is contained in |
| function | The name of the traced function |