45 #ifndef INSTRUCTION_WRITER_HPP 46 #define INSTRUCTION_WRITER_HPP CONSTREF_FORWARD_DECL(application_manager)
Graph include.
int debug_level
The debug level.
virtual ~InstructionWriter()
Destructor.
REF_FORWARD_DECL(IndentedOutputStream)
Class specification of the graph structures.
virtual void write_declarations()
Write code needed for declaration/initialization of auxiliary variables.
virtual void Initialize()
Initialize data structure.
virtual void declareFunction(const unsigned int function_id)
Write the declaration of a function.
boost::graph_traits< graph >::vertex_descriptor vertex
vertex definition.
Base class functor used by prettyPrintVertex to print variables.
InstructionWriter(const application_managerConstRef AppM, const IndentedOutputStreamRef indented_output_stream, const ParameterConstRef parameters)
Constructor; it is protected since factory method should be used.
const application_managerConstRef AppM
The application manager.
void WriteComment(const std::string &text)
Writes a comment.
Template definition of refcount.
Very simple pretty printer functor.
ActorGraphBackend_Type
C thread backend to be used.
static InstructionWriterRef CreateInstructionWriter(const ActorGraphBackend_Type actor_graph_backend_type, const application_managerConstRef AppM, const IndentedOutputStreamRef indented_output_stream, const ParameterConstRef parameters)
Factory method.
const IndentedOutputStreamRef indented_output_stream
The indented output stream.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
virtual void write(const FunctionBehaviorConstRef function_behavior, const vertex statement, const var_pp_functorConstRef varFunctor)
Write a statement.
Class to print indented code.
const ParameterConstRef parameters
The set of input parameters.