Skip to content
Snippets Groups Projects
Select Git revision
  • 855699099fe3b65fff4ab68976638390fec4464c
  • develop default protected
  • save_clemence
  • feature/composite-scheme-other-fluxes
  • feature/advection
  • origin/stage/bouguettaia
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

ASTDotPrinter.hpp

Blame
  • ASTDotPrinter.hpp 617 B
    #ifndef AST_DOT_PRINTER_HPP
    #define AST_DOT_PRINTER_HPP
    
    #include <ASTNode.hpp>
    #include <map>
    
    class ASTDotPrinter
    {
     private:
      const ASTNode& m_node;
    
      std::map<const ASTNode*, uint32_t> m_node_number_map;
    
      void _print(std::ostream& os, const ASTNode& node) const;
    
      void _buildNodeNumberMap(const ASTNode& node);
    
     public:
      friend std::ostream& operator<<(std::ostream& os, const ASTDotPrinter& ast_printer);
    
      ASTDotPrinter(const ASTNode& node);
    
      ASTDotPrinter(const ASTDotPrinter&) = delete;
    
      ASTDotPrinter(ASTDotPrinter&&) = delete;
    
      ~ASTDotPrinter() = default;
    };
    
    #endif   // AST_DOT_PRINTER_HPP