PandA-2024.02
Public Member Functions | Protected Attributes
OpWriter Class Reference

#include <behavioral_writer_helper.hpp>

Inheritance diagram for OpWriter:
Inheritance graph
[legend]
Collaboration diagram for OpWriter:
Collaboration graph
[legend]

Public Member Functions

 OpWriter (const OpGraph *operation_graph, const int detail_level)
 Constructor. More...
 
void operator() (std::ostream &out, const vertex &v) const override
 Functor to print the label of a vertex. More...
 
- Public Member Functions inherited from VertexWriter
 VertexWriter (const graph *_graph, const int _detail_level)
 Constructor. More...
 
virtual ~VertexWriter ()=default
 Destructor. More...
 

Protected Attributes

const BehavioralHelperConstRef helper
 The behavioral helper. More...
 
- Protected Attributes inherited from VertexWriter
const graphprinting_graph
 The graph to be printed. More...
 
const int detail_level
 The detail level. More...
 

Detailed Description

Definition at line 125 of file behavioral_writer_helper.hpp.

Constructor & Destructor Documentation

◆ OpWriter()

OpWriter::OpWriter ( const OpGraph operation_graph,
const int  detail_level 
)

Constructor.

Parameters
op_graphis the operation graph
detail_levelis the level of detail: 0 - print operation 1 - print operation and accessed variables

Definition at line 468 of file behavioral_writer_helper.cpp.

Referenced by operator()().

Here is the caller graph for this function:

Member Function Documentation

◆ operator()()

void OpWriter::operator() ( std::ostream &  out,
const vertex v 
) const
overridevirtual

Functor to print the label of a vertex.

Parameters
outis the stream where label has to be printed
vis the vertex whose label has to be printed

Implements VertexWriter.

Definition at line 473 of file behavioral_writer_helper.cpp.

References OpGraph::CGetOpNodeInfo(), VertexWriter::detail_level, GET_NAME, GET_TYPE, helper, OpWriter(), VertexWriter::printing_graph, lenet_tvm::target, TYPE_ASSIGN, TYPE_ENTRY, TYPE_EXIT, TYPE_EXTERNAL, TYPE_GOTO, TYPE_IF, TYPE_LOAD, TYPE_MEMCPY, TYPE_STORE, TYPE_SWITCH, and AbsControlStep::UNKNOWN.

Here is the call graph for this function:

Field Documentation

◆ helper

const BehavioralHelperConstRef OpWriter::helper
protected

The behavioral helper.

Definition at line 129 of file behavioral_writer_helper.hpp.

Referenced by operator()().


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

Generated on Mon Feb 12 2024 13:03:59 for PandA-2024.02 by doxygen 1.8.13