herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
exsample::binary_tree< Value >::ostream_visitor< OStream > Struct Template Reference

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
 

Detailed Description

template<class Value>
template<class OStream>
struct exsample::binary_tree< Value >::ostream_visitor< OStream >

forward visitor writing out the tree to given ostream

Definition at line 658 of file binary_tree.h.


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