HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraceAuto Class Reference

#include <trace.h>

Public Member Functions

 TraceAuto (const char *funcName, const char *prettyFuncName, const std::string &name)
 
 TraceAuto (const TfToken &key)
 
 TraceAuto (const std::string &key)
 
 TraceAuto (const TraceAuto &)=delete
 
TraceAutooperator= (const TraceAuto &)=delete
 
 TraceAuto (TraceAuto &&)=delete
 
TraceAutooperator= (TraceAuto &&)=delete
 
 ~TraceAuto ()
 

Detailed Description

A class which records a begin event when it is constructed, and a matching end event when it is destructed. It is intended to help ensure begin-end pairing correctness when the begin-end pairing can be expressed by automatic variable lifetime.

The TRACE_FUNCTION() macro may be even more convenient in some circumstances.

Definition at line 255 of file trace.h.

Constructor & Destructor Documentation

TraceAuto::TraceAuto ( const char *  funcName,
const char *  prettyFuncName,
const std::string name 
)
inline

Constructor taking function name, pretty function name and a scope name.

Definition at line 258 of file trace.h.

TraceAuto::TraceAuto ( const TfToken key)
inlineexplicit

Constructor taking a TfToken key.

Definition at line 269 of file trace.h.

TraceAuto::TraceAuto ( const std::string key)
inlineexplicit

Constructor taking a string key.

Definition at line 279 of file trace.h.

TraceAuto::TraceAuto ( const TraceAuto )
delete
TraceAuto::TraceAuto ( TraceAuto &&  )
delete
TraceAuto::~TraceAuto ( )
inline

Destructor.

Definition at line 294 of file trace.h.

Member Function Documentation

TraceAuto& TraceAuto::operator= ( const TraceAuto )
delete
TraceAuto& TraceAuto::operator= ( TraceAuto &&  )
delete

The documentation for this class was generated from the following file: