![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/zombie-check.hpp"
Automatic lifecycle tracker, to produce an alarm when accessing objects after deletion.
Definition at line 50 of file zombie-check.hpp.
Public Member Functions | |
| ZombieCheck (string id) | |
| install a zombie check, tagged with the given id. | |
| ZombieCheck ()=default | |
| ~ZombieCheck () | |
| operator bool () const | |
| void | operator() () const |
Private Member Functions | |
| string | buildDiagnosticMessage () const |
Private Attributes | |
| bool | deceased_ = false |
| char | zombieID_ [42] {} |
|
inline |
install a zombie check, tagged with the given id.
When invoked after death, the raised error::Fatal includes this ID in the diagnostic message.
Definition at line 62 of file zombie-check.hpp.
References ZombieCheck::zombieID_.
|
default |
|
inline |
Definition at line 68 of file zombie-check.hpp.
References ZombieCheck::deceased_.
|
inline |
Definition at line 73 of file zombie-check.hpp.
References ZombieCheck::deceased_.
|
inline |
Definition at line 79 of file zombie-check.hpp.
References ZombieCheck::buildDiagnosticMessage(), and ZombieCheck::deceased_.
Here is the call graph for this function:
|
inlineprivate |
Definition at line 88 of file zombie-check.hpp.
References ZombieCheck::zombieID_.
Referenced by ZombieCheck::operator()().
Here is the caller graph for this function:
|
private |
Definition at line 52 of file zombie-check.hpp.
Referenced by ZombieCheck::~ZombieCheck(), ZombieCheck::operator bool(), and ZombieCheck::operator()().
|
private |
Definition at line 53 of file zombie-check.hpp.
Referenced by ZombieCheck::ZombieCheck(), and ZombieCheck::buildDiagnosticMessage().
Collaboration diagram for ZombieCheck: