Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::FakeElement::DeferredPrinter Struct Reference

Helper class to change how this element is printed as a tree. More...

#include "donner/base/element/tests/FakeElement.h"

Collaboration diagram for donner::FakeElement::DeferredPrinter:
[legend]

Public Attributes

const FakeElementelement
 The element to print.
 

Friends

std::ostream & operator<< (std::ostream &os, const DeferredPrinter &printer)
 Ostream output operator, which prints the element's and all children.
 

Detailed Description

Helper class to change how this element is printed as a tree.

Example usage:

std::cout << element.printAsTree() << "\n";
A test fake for a type that satisfies the ElementLike concept.
Definition FakeElement.h:23
DeferredPrinter printAsTree() const
When used in an ostream output stream, prints the element's and all children instead of just the elem...
Definition FakeElement.h:247
const FakeElement & element
The element to print.
Definition FakeElement.h:229

Where FakeElement::printAsTree returns a DeferredPrinter as its result.


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