GCC Middle and Back End API Reference
dot::writer Class Reference

#include <graphviz.h>

Inheritance diagram for dot::writer:
Collaboration diagram for dot::writer:

Public Member Functions

 writer (pretty_printer &pp)
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

◆ writer()

dot::writer::writer ( pretty_printer & pp)

References m_indent, and m_pp.

Referenced by graphviz_out::graphviz_out().

Member Function Documentation

◆ get_pp()

◆ indent()

void dot::writer::indent ( )
inline

◆ outdent()

void dot::writer::outdent ( )
inline

◆ write_character()

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

References m_pp, and pp_character().

◆ write_indent()

void dot::writer::write_indent ( )
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 ( )
inline

References m_pp, and pp_newline().

◆ write_string()

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

References m_pp, and pp_string().

Field Documentation

◆ m_indent

int dot::writer::m_indent
private

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

◆ m_pp

pretty_printer& dot::writer::m_pp
private

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