ChimeraTK-ApplicationCore  04.01.00
ChimeraTK::PushableStream Class Reference

A helper class to replace the output stream temporarily. More...

#include <VariableNetworkNodeDumpingVisitor.h>

+ Inheritance diagram for ChimeraTK::PushableStream:

Public Member Functions

 PushableStream (std::ostream &stream)
 
virtual ~PushableStream ()=default
 
void pushStream (std::ostream &stream)
 
std::ostream & stream ()
 
void popStream ()
 

Detailed Description

A helper class to replace the output stream temporarily.

This is a helper class that is used in the Graphviz dumper to be able to dump the nodes to a stringstream instead of directly to the file.

Ideally, the pushStream()/popStream() functions should be called in pairs but popStream() will do nothing if the stack is empty.

Definition at line 29 of file VariableNetworkNodeDumpingVisitor.h.

Constructor & Destructor Documentation

◆ PushableStream()

ChimeraTK::PushableStream::PushableStream ( std::ostream &  stream)
inlineexplicit

Definition at line 31 of file VariableNetworkNodeDumpingVisitor.h.

+ Here is the call graph for this function:

◆ ~PushableStream()

virtual ChimeraTK::PushableStream::~PushableStream ( )
virtualdefault

Member Function Documentation

◆ popStream()

void ChimeraTK::PushableStream::popStream ( )
inline

Definition at line 38 of file VariableNetworkNodeDumpingVisitor.h.

◆ pushStream()

void ChimeraTK::PushableStream::pushStream ( std::ostream &  stream)
inline

Definition at line 34 of file VariableNetworkNodeDumpingVisitor.h.

+ Here is the call graph for this function:

◆ stream()

std::ostream& ChimeraTK::PushableStream::stream ( )
inline

Definition at line 36 of file VariableNetworkNodeDumpingVisitor.h.

+ Here is the caller graph for this function:

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