Alexandria
2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Pyston
Pyston
Util
GraphvizGenerator.h
Go to the documentation of this file.
1
19
#ifndef PYSTON_GRAPHVIZGENERATOR_H
20
#define PYSTON_GRAPHVIZGENERATOR_H
21
22
#include "
Pyston/Graph/Node.h
"
23
#include <list>
24
#include <sstream>
25
26
namespace
Pyston
{
27
32
class
GraphvizGenerator
:
public
Visitor
{
33
public
:
39
explicit
GraphvizGenerator
(
const
std::string
& label);
40
44
void
enter
(
const
NodeBase
* node)
override
;
45
49
void
exit
(
const
NodeBase
*)
override
;
50
55
std::string
str
()
const
;
56
57
private
:
58
int64_t
m_unique_id
;
59
std::stringstream
m_stream
;
60
std::list<int64_t>
m_stack
;
61
};
62
63
}
// namespace Pyston
64
65
#endif
// PYSTON_GRAPHVIZGENERATOR_H
Node.h
std::string
std::stringstream
Pyston::GraphvizGenerator
Definition
GraphvizGenerator.h:32
Pyston::GraphvizGenerator::exit
void exit(const NodeBase *) override
Definition
GraphvizGenerator.cpp:41
Pyston::GraphvizGenerator::str
std::string str() const
Definition
GraphvizGenerator.cpp:45
Pyston::GraphvizGenerator::m_unique_id
int64_t m_unique_id
Definition
GraphvizGenerator.h:58
Pyston::GraphvizGenerator::m_stack
std::list< int64_t > m_stack
Definition
GraphvizGenerator.h:60
Pyston::GraphvizGenerator::m_stream
std::stringstream m_stream
Definition
GraphvizGenerator.h:59
Pyston::GraphvizGenerator::enter
void enter(const NodeBase *node) override
Definition
GraphvizGenerator.cpp:32
Pyston::NodeBase
Definition
Node.h:39
Pyston::Visitor
Definition
Node.h:160
std::list
Pyston
Definition
ExceptionRaiser.h:28
Generated by
1.9.8