mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields | Static Public Attributes | Private Attributes
m::ast::ASTDot Struct Reference

Implements printing the AST in dot language. More...

#include <ASTDot.hpp>

Inheritance diagram for m::ast::ASTDot:
[legend]
Collaboration diagram for m::ast::ASTDot:
[legend]

Public Types

template<typename T >
using Const = ConstASTExprVisitor::Const< T >
 

Public Member Functions

 ASTDot (std::ostream &out, int indent=0)
 
 ~ASTDot ()
 

Data Fields

std::ostream & out
 the output stream to print to
 

Static Public Attributes

static constexpr const char *const GRAPH_TYPE = "graph"
 
static constexpr const char *const EDGE = " -- "
 

Private Attributes

int indent_
 the current indentation for pretty printing
 

Detailed Description

Implements printing the AST in dot language.

Definition at line 12 of file ASTDot.hpp.

Member Typedef Documentation

◆ Const

template<typename T >
using m::ast::ConstASTVisitor::Const = ConstASTExprVisitor::Const<T>
inherited

Definition at line 1081 of file AST.hpp.

Constructor & Destructor Documentation

◆ ASTDot()

ASTDot::ASTDot ( std::ostream &  out,
int  indent = 0 
)
Parameters
outthe output stream to print to
indentthe initial indentation

Definition at line 15 of file ASTDot.cpp.

References GRAPH_TYPE, indent_, and out.

◆ ~ASTDot()

ASTDot::~ASTDot ( )

Definition at line 27 of file ASTDot.cpp.

References indent_, M_insist, and out.

Field Documentation

◆ EDGE

constexpr const char* const m::ast::ASTDot::EDGE = " -- "
staticconstexpr

Definition at line 15 of file ASTDot.hpp.

◆ GRAPH_TYPE

constexpr const char* const m::ast::ASTDot::GRAPH_TYPE = "graph"
staticconstexpr

Definition at line 14 of file ASTDot.hpp.

Referenced by ASTDot().

◆ indent_

int m::ast::ASTDot::indent_
private

the current indentation for pretty printing

Definition at line 20 of file ASTDot.hpp.

Referenced by ASTDot(), and ~ASTDot().

◆ out

std::ostream& m::ast::ASTDot::out

the output stream to print to

Definition at line 17 of file ASTDot.hpp.

Referenced by ASTDot(), and ~ASTDot().


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