PandA-2024.02
Public Member Functions | Private Attributes
FunctionWriter Class Reference

Functor used by write_graphviz to write the label of the vertices of a function graph. More...

#include <call_graph.hpp>

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

Public Member Functions

 FunctionWriter (const CallGraph *call_graph)
 constructor More...
 
void operator() (std::ostream &out, const vertex &v) const override
 operator function returning the label of the vertex More...
 
- Public Member Functions inherited from VertexWriter
 VertexWriter (const graph *_graph, const int _detail_level)
 Constructor. More...
 
virtual ~VertexWriter ()=default
 Destructor. More...
 

Private Attributes

const std::map< unsigned int, FunctionBehaviorRef > & behaviors
 reference to the behaviors More...
 

Additional Inherited Members

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

Detailed Description

Functor used by write_graphviz to write the label of the vertices of a function graph.

Definition at line 224 of file call_graph.hpp.

Constructor & Destructor Documentation

◆ FunctionWriter()

FunctionWriter::FunctionWriter ( const CallGraph call_graph)
explicit

constructor

Parameters
call_graphis the graph to be printed

Definition at line 98 of file call_graph.cpp.

Member Function Documentation

◆ operator()()

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

operator function returning the label of the vertex

Parameters
outis the output stream
vis the vertex

Implements VertexWriter.

Definition at line 103 of file call_graph.cpp.

References add_escape(), behaviors, VertexWriter::printing_graph, and THROW_ASSERT.

Here is the call graph for this function:

Field Documentation

◆ behaviors

const std::map<unsigned int, FunctionBehaviorRef>& FunctionWriter::behaviors
private

reference to the behaviors

Definition at line 228 of file call_graph.hpp.

Referenced by operator()().


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

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