souffle
2.0.2-371-g6315b36
|
Transformer that repeatedly executes a sub-transformer while a condition is met. More...
#include <While.h>
Public Member Functions | |
WhileTransformer * | clone () const override |
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 |
WhileTransformer (bool cond, Own< Transformer > transformer) | |
WhileTransformer (std::function< bool()> cond, Own< Transformer > transformer) | |
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 repeatedly executes a sub-transformer while a condition is met.
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 81 of file While.h.
References souffle::ast::transform::MetaTransformer::applySubtransformer(), condition, and transformer.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements souffle::ast::transform::Transformer.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 54 of file While.h.
References transformer, and souffle::ast::transform::MetaTransformer::verbose.
|
inlineoverridevirtual |
|
inlineoverrideprivatevirtual |
Implements souffle::ast::transform::Transformer.
|
private |
|
private |
Definition at line 87 of file While.h.
Referenced by clone(), and setDebugReport().