Alexandria  2.27.0
SDC-CH common library for the Euclid project
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;
61 };
62 
63 } // namespace Pyston
64 
65 #endif // PYSTON_GRAPHVIZGENERATOR_H
void exit(const NodeBase *) override
std::list< int64_t > m_stack
std::stringstream m_stream
GraphvizGenerator(const std::string &label)
void enter(const NodeBase *node) override