|
vg
tools for working with variation graphs
|
#include <explainer.hpp>
Public Member Functions | |
| Explainer (bool enabled) | |
| Construct an Explainer that will save to one or more files. More... | |
| virtual | ~Explainer () |
| Close out the files being explained to. More... | |
| operator bool () const | |
Static Public Attributes | |
| static bool | save_explanations = false |
| Determine if explanations should be generated. More... | |
Protected Member Functions | |
| bool | explaining () const |
| Function to check if we should be explaining. More... | |
Protected Attributes | |
| size_t | explanation_number |
| What number explanation are we? Distinguishes different objects. More... | |
| bool | enabled |
| Determines if this explainer should generate explanations. More... | |
Static Protected Attributes | |
| static std::atomic< size_t > | next_explanation_number {0} |
| Counter used to give different explanations their own unique filenames. More... | |
Base explainer class. Handles making sure each explanation has a different unique number.
| vg::Explainer::Explainer | ( | bool | enabled | ) |
Construct an Explainer that will save to one or more files.
|
virtual |
Close out the files being explained to.
|
inlineprotected |
Function to check if we should be explaining.
|
inline |
Conversion to bool so you can use an explainer as a condition on code to write to it.
|
protected |
Determines if this explainer should generate explanations.
|
protected |
What number explanation are we? Distinguishes different objects.
|
staticprotected |
Counter used to give different explanations their own unique filenames.
|
static |
Determine if explanations should be generated.
1.8.17