souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Attributes
souffle::ast::transform::MetaTransformer Class Referenceabstract

Transformer that coordinates other sub-transformations. More...

#include <Meta.h>

Inheritance diagram for souffle::ast::transform::MetaTransformer:
Inheritance graph
Collaboration diagram for souffle::ast::transform::MetaTransformer:
Collaboration graph

Public Member Functions

bool applySubtransformer (TranslationUnit &translationUnit, Transformer *transformer)
 
MetaTransformerclone () const override=0
 
virtual void disableTransformers (const std::set< std::string > &transforms)=0
 
virtual std::vector< Transformer * > getSubtransformers () const =0
 
virtual void setDebugReport ()=0
 
virtual void setVerbosity (bool verbose)=0
 
- Public Member Functions inherited from souffle::ast::transform::Transformer
bool apply (TranslationUnit &translationUnit)
 
virtual std::string getName () const =0
 
virtual ~Transformer ()=default
 

Protected Attributes

bool verbose = false
 

Detailed Description

Transformer that coordinates other sub-transformations.

Definition at line 36 of file Meta.h.

Member Function Documentation

◆ applySubtransformer()

bool souffle::ast::transform::MetaTransformer::applySubtransformer ( TranslationUnit translationUnit,
Transformer transformer 
)

Definition at line 30 of file Meta.cpp.

30  : "unchanged";
31  std::cout << transformer->getName() << " time: " << std::chrono::duration<double>(end - start).count()
32  << "sec [" << changedString << "]" << std::endl;
33  }
34 
35  return changed;
36 }
37 
38 } // namespace souffle::ast::transform

Referenced by souffle::ast::transform::WhileTransformer::clone(), souffle::ast::transform::PipelineTransformer::clone(), and souffle::ast::transform::ConditionalTransformer::getName().

◆ clone()

MetaTransformer* souffle::ast::transform::MetaTransformer::clone ( ) const
overridepure virtual

◆ disableTransformers()

virtual void souffle::ast::transform::MetaTransformer::disableTransformers ( const std::set< std::string > &  transforms)
pure virtual

◆ getSubtransformers()

virtual std::vector<Transformer*> souffle::ast::transform::MetaTransformer::getSubtransformers ( ) const
pure virtual

◆ setDebugReport()

virtual void souffle::ast::transform::MetaTransformer::setDebugReport ( )
pure virtual

◆ setVerbosity()

virtual void souffle::ast::transform::MetaTransformer::setVerbosity ( bool  verbose)
pure virtual

Field Documentation

◆ verbose

bool souffle::ast::transform::MetaTransformer::verbose = false
protected

The documentation for this class was generated from the following files: