Herwig 7.3.0
|
forward visitor writing out the tree to given ostream More...
#include <binary_tree.h>
Public Member Functions | |
ostream_visitor (OStream &os) | |
construct from ostream reference | |
void | visit (const value_type &) |
visit a leaf node | |
void | visit (const value_type &parent, const value_type &left, const value_type &right) |
visit a branching | |
Private Attributes | |
OStream * | os_ |
pointer to the ostream to write to | |
bool | first_time_ |
whether we are at the or not | |
forward visitor writing out the tree to given ostream
Definition at line 658 of file binary_tree.h.
|
inlineexplicit |
construct from ostream reference
Definition at line 661 of file binary_tree.h.
|
inline |
visit a leaf node
Definition at line 664 of file binary_tree.h.
References exsample::binary_tree< Value >::ostream_visitor< OStream >::os_, and exsample::ostream_traits< OStream >::separator().
|
inline |
visit a branching
Definition at line 670 of file binary_tree.h.
References exsample::binary_tree< Value >::ostream_visitor< OStream >::first_time_, left(), exsample::binary_tree< Value >::ostream_visitor< OStream >::os_, exsample::binary_tree< Value >::parent(), exsample::binary_tree< Value >::put(), right(), and exsample::ostream_traits< OStream >::separator().
|
private |
whether we are at the or not
Definition at line 695 of file binary_tree.h.
Referenced by exsample::binary_tree< Value >::ostream_visitor< OStream >::visit().
|
private |
pointer to the ostream to write to
Definition at line 692 of file binary_tree.h.
Referenced by exsample::binary_tree< Value >::ostream_visitor< OStream >::visit().