![]() |
Lumiera 0.pre.04
»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 51 of file diagnostic-context.hpp.
Static Public Member Functions | |
| static DiagnosticContext & | access () |
| accessing the innermost diagnostic context created | |
| static ValSequence | extractStack () |
| snapshot of the current stack of diagnostic frames | |
Public Member Functions | |
| DiagnosticContext (VAL const &value_to_log=VAL()) | |
| ~DiagnosticContext () | |
| operator VAL const & () | |
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 | |
| const VAL | value_ |
| DiagnosticContext *const | prev_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
|
inline |
Definition at line 70 of file diagnostic-context.hpp.
References DiagnosticContext< VAL >::current().
Here is the call graph for this function:
|
inline |
Definition at line 77 of file diagnostic-context.hpp.
References DiagnosticContext< VAL >::current(), and DiagnosticContext< VAL >::prev_.
Here is the call graph for this function:
|
private |
Definition at line 54 of file diagnostic-context.hpp.
|
inlinestaticprivate |
embedded thread local pointer to the innermost context encountered
Definition at line 62 of file diagnostic-context.hpp.
Referenced by DiagnosticContext< VAL >::DiagnosticContext(), DiagnosticContext< VAL >::~DiagnosticContext(), DiagnosticContext< VAL >::access(), and DiagnosticContext< VAL >::extractStack().
Here is the caller graph for this function:
|
inline |
Definition at line 84 of file diagnostic-context.hpp.
References DiagnosticContext< VAL >::value_.
|
inlinestatic |
accessing the innermost diagnostic context created
Definition at line 91 of file diagnostic-context.hpp.
References DiagnosticContext< VAL >::current().
Here is the call graph for this function:
|
inlinestatic |
snapshot of the current stack of diagnostic frames
Definition at line 110 of file diagnostic-context.hpp.
References DiagnosticContext< VAL >::current(), and DiagnosticContext< VAL >::prev_.
Here is the call graph for this function:
|
private |
Definition at line 56 of file diagnostic-context.hpp.
Referenced by DiagnosticContext< VAL >::operator VAL const &().
|
private |
Definition at line 57 of file diagnostic-context.hpp.
Referenced by DiagnosticContext< VAL >::~DiagnosticContext(), and DiagnosticContext< VAL >::extractStack().
Inheritance diagram for DiagnosticContext< VAL >:
Collaboration diagram for DiagnosticContext< VAL >: