Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/diagnostic-context.hpp"
Diagnostic data frame to collect specific information concerning a scope.
To be placed explicitly as an automatic (stack) variable. Provides a controlled environment for hooking up diagnostic code. Within each thread, a stack of such information frames concerning nested scopes is maintained automatically. It can be accessed via static API.
Definition at line 60 of file diagnostic-context.hpp.
Public Member Functions | |
DiagnosticContext (VAL const &value_to_log=VAL()) | |
operator VAL const & () | |
Static Public Member Functions | |
static DiagnosticContext & | access () |
accessing the innermost diagnostic context created | |
static ValSequence | extractStack () |
snapshot of the current stack of diagnostic frames More... | |
Private Types | |
using | ValSequence = std::vector< VAL > |
Static Private Member Functions | |
static DiagnosticContext *& | current () |
embedded thread local pointer to the innermost context encountered | |
Private Attributes | |
DiagnosticContext *const | prev_ |
const VAL | value_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
|
inlinestatic |
snapshot of the current stack of diagnostic frames
Definition at line 119 of file diagnostic-context.hpp.
References DiagnosticContext< VAL >::current().
Referenced by DiagnosticContext_test::verify_simpleAccess().