souffle
2.0.2-371-g6315b36
|
Transformer that executes a sub-transformer iff a condition holds. More...
#include <Conditional.h>
Public Member Functions | |
ConditionalTransformer * | clone () const override |
ConditionalTransformer (bool cond, Own< Transformer > transformer) | |
ConditionalTransformer (std::function< bool()> cond, Own< Transformer > transformer) | |
void | disableTransformers (const std::set< std::string > &transforms) override |
std::string | getName () const override |
std::vector< Transformer * > | getSubtransformers () const override |
void | setDebugReport () override |
void | setVerbosity (bool verbose) override |
Public Member Functions inherited from souffle::ast::transform::MetaTransformer | |
bool | applySubtransformer (TranslationUnit &translationUnit, Transformer *transformer) |
Public Member Functions inherited from souffle::ast::transform::Transformer | |
bool | apply (TranslationUnit &translationUnit) |
virtual | ~Transformer ()=default |
Private Member Functions | |
bool | transform (TranslationUnit &translationUnit) override |
Private Attributes | |
std::function< bool()> | condition |
Own< Transformer > | transformer |
Additional Inherited Members | |
Protected Attributes inherited from souffle::ast::transform::MetaTransformer | |
bool | verbose = false |
Transformer that executes a sub-transformer iff a condition holds.
Definition at line 43 of file Conditional.h.
|
inline |
|
inline |
Definition at line 54 of file Conditional.h.
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 88 of file Conditional.h.
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 76 of file Conditional.h.
References souffle::clone(), condition, ConditionalTransformer(), and transformer.
|
inlineoverridevirtual |
Implements souffle::ast::transform::Transformer.
Definition at line 84 of file Conditional.h.
References souffle::ast::transform::MetaTransformer::applySubtransformer(), condition, and transformer.
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 57 of file Conditional.h.
References transformer, and souffle::ast::transform::MetaTransformer::verbose.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 69 of file Conditional.h.
|
inlineoverrideprivatevirtual |
Implements souffle::ast::transform::Transformer.
Definition at line 96 of file Conditional.h.
|
private |
Definition at line 93 of file Conditional.h.
Referenced by disableTransformers(), and getName().
|
private |
Definition at line 94 of file Conditional.h.
Referenced by disableTransformers(), getName(), and getSubtransformers().