Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
DotOut Class Reference

#include "lib/dot-gen.hpp"

Description

Helper to collect DOT-Graphviz code for output.

Definition at line 177 of file dot-gen.hpp.

Public Member Functions

void putLine (string line, uint indent=0)
 
void put (Code const &code)
 
void put (Section const &sect)
 
template<class P , class... PS>
void put (P const &part, PS const &...parts)
 
 operator string () const
 retrieve complete code generated thus far
 

Private Attributes

std::ostringstream buff_
 

Static Private Attributes

static uint const IDENT_STEP = 2
 

Member Function Documentation

◆ putLine()

void putLine ( string  line,
uint  indent = 0 
)
inline

Definition at line 184 of file dot-gen.hpp.

References DotOut::buff_.

Referenced by DotOut::put(), and DotOut::put().

+ Here is the caller graph for this function:

◆ put() [1/3]

void put ( Code const &  code)
inline

Definition at line 193 of file dot-gen.hpp.

References DotOut::buff_.

Referenced by DotOut::put().

+ Here is the caller graph for this function:

◆ put() [2/3]

void put ( Section const &  sect)
inline

Definition at line 199 of file dot-gen.hpp.

References DotOut::IDENT_STEP, Section::lines, and DotOut::putLine().

+ Here is the call graph for this function:

◆ put() [3/3]

template<class P , class... PS>
void put ( P const &  part,
PS const &...  parts 
)
inline

Definition at line 207 of file dot-gen.hpp.

References DotOut::put(), and DotOut::putLine().

+ Here is the call graph for this function:

◆ operator string()

operator string ( ) const
inline

retrieve complete code generated thus far

Definition at line 215 of file dot-gen.hpp.

References DotOut::buff_.

Member Data Documentation

◆ buff_

std::ostringstream buff_
private

Definition at line 179 of file dot-gen.hpp.

Referenced by DotOut::operator string(), DotOut::put(), and DotOut::putLine().

◆ IDENT_STEP

uint const IDENT_STEP = 2
staticprivate

Definition at line 181 of file dot-gen.hpp.

Referenced by DotOut::put().

+ Collaboration diagram for DotOut:

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