GCC Middle and Back End API Reference
graphviz_out Class Reference

#include <graphviz.h>

Inheritance diagram for graphviz_out:
Collaboration diagram for graphviz_out:

Public Member Functions

 graphviz_out (pretty_printer *pp)
void print (const char *fmt,...) ATTRIBUTE_GCC_PPDIAG(2
void void println (const char *fmt,...) ATTRIBUTE_GCC_PPDIAG(2
void void void begin_tr ()
void end_tr ()
void begin_td ()
void end_td ()
void begin_trtd ()
void end_tdtr ()
void indent ()
void outdent ()
void write_indent ()
void write_character (char ch)
void write_string (const char *str)
void write_newline ()
pretty_printerget_pp () const

Private Attributes

pretty_printerm_pp
int m_indent

Detailed Description

A class for writing .dot output to a pretty_printer with
indentation to show nesting.   

Constructor & Destructor Documentation

◆ graphviz_out()

graphviz_out::graphviz_out ( pretty_printer * pp)

Member Function Documentation

◆ begin_td()

void graphviz_out::begin_td ( )
Write the start of an HTML-like <TD>, writing to the stream
so that followup text can be escaped.   

References dot::writer::get_pp(), pp_string(), and pp_write_text_to_stream().

◆ begin_tr()

void graphviz_out::begin_tr ( )
Write the start of an HTML-like row via <TR>, writing to the stream
so that followup text can be escaped.   

References dot::writer::get_pp(), pp_string(), and pp_write_text_to_stream().

◆ begin_trtd()

void graphviz_out::begin_trtd ( )
Write the start of an HTML-like row via <TR><TD>, writing to the stream
so that followup text can be escaped.   

References dot::writer::get_pp(), pp_string(), and pp_write_text_to_stream().

◆ end_td()

void graphviz_out::end_td ( )
Write the end of an HTML-like </TD>, writing to the stream
so that followup text can be escaped.   

References dot::writer::get_pp(), pp_string(), and pp_write_text_to_stream().

◆ end_tdtr()

void graphviz_out::end_tdtr ( )
Write the end of an HTML-like row via </TD></TR>, writing to the stream
so that followup text can be escaped.   

References dot::writer::get_pp(), pp_string(), and pp_write_text_to_stream().

◆ end_tr()

void graphviz_out::end_tr ( )
Write the end of an HTML-like row via </TR>, writing to the stream
so that followup text can be escaped.   

References dot::writer::get_pp(), pp_string(), and pp_write_text_to_stream().

◆ get_pp()

◆ indent()

void dot::writer::indent ( )
inlineinherited

◆ outdent()

void dot::writer::outdent ( )
inlineinherited

◆ print()

void graphviz_out::print ( const char * fmt,
... )
Formatted print of FMT.   

References ap, errno, dot::writer::get_pp(), pp_format(), and pp_output_formatted_text().

◆ println()

void graphviz_out::println ( const char * fmt,
... )
Formatted print of FMT.  The text is indented by the current
indent, and a newline is added.   

References ap, errno, dot::writer::get_pp(), pp_format(), pp_newline(), pp_output_formatted_text(), and dot::writer::write_indent().

◆ write_character()

void dot::writer::write_character ( char ch)
inlineinherited

References m_pp, and pp_character().

◆ write_indent()

void dot::writer::write_indent ( )
inherited
Print the current indent to the underlying pp.   

References get_pp(), i, m_indent, and pp_space.

Referenced by graphviz_out::println().

◆ write_newline()

void dot::writer::write_newline ( )
inlineinherited

References m_pp, and pp_newline().

◆ write_string()

void dot::writer::write_string ( const char * str)
inlineinherited

References m_pp, and pp_string().

Field Documentation

◆ m_indent

int dot::writer::m_indent
privateinherited

Referenced by indent(), outdent(), write_indent(), and writer().

◆ m_pp

pretty_printer& dot::writer::m_pp
privateinherited

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