![]() |
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 the Logger class and is responsible for the atomicity of the logging operations of trace information. More...
#include <FunctionTrace.h>
Inherits blaze::NonCopyable.
Public Member Functions | |
Constructors | |
FunctionTrace (const std::string &file, const std::string &function) | |
Constructor for the FunctionTrace class. More... | |
Destructor | |
~FunctionTrace () | |
Destructor for the FunctionTrace class. | |
Forbidden operations | |
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 the Logger class and is responsible for the atomicity of the logging operations of trace information.
blaze::logging::FunctionTrace::FunctionTrace | ( | const std::string & | file, |
const std::string & | function | ||
) |
Constructor for the FunctionTrace class.
file | The name of the file the traced function is contained in |
function | The name of the traced function |