Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
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
26namespace Pyston {
27
32class GraphvizGenerator : public Visitor {
33public:
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
57private:
58 int64_t m_unique_id;
61};
62
63} // namespace Pyston
64
65#endif // PYSTON_GRAPHVIZGENERATOR_H
void exit(const NodeBase *) override
std::list< int64_t > m_stack
void enter(const NodeBase *node) override