CGRA-ME
Public Member Functions | Public Attributes | List of all members
DebugVisitor< VertexID, Base, OStream > Struct Template Reference

#include <GraphAlgorithmHelpers.h>

Inheritance diagram for DebugVisitor< VertexID, Base, OStream >:
DoNothingGraphVisitor< VertexID >

Public Member Functions

 DebugVisitor (OStream *debug_stream=nullptr)
 
void onExamine (const VertexID &v)
 
void onSkipped (const VertexID &v)
 
void onExamineEdge (const VertexID &source, const VertexID &target)
 
void onSkippedEdge (const VertexID &source, const VertexID &target)
 
void onWaveEnd ()
 
- Public Member Functions inherited from DoNothingGraphVisitor< VertexID >
void onExamine (const VertexID &)
 
void onExamineEdge (const VertexID &, const VertexID &)
 
bool shouldIgnore (const VertexID &)
 
bool shouldIgnoreEdge (const VertexID &, const VertexID &)
 
void onSkipped (const VertexID &)
 
void onSkippedEdge (const VertexID &, const VertexID &)
 
void onWaveEnd ()
 
bool shouldStop ()
 

Public Attributes

OStream * debug_stream
 

Detailed Description

template<typename VertexID, typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
struct DebugVisitor< VertexID, Base, OStream >

Optionally prints the callbacks as they happen

Definition at line 181 of file GraphAlgorithmHelpers.h.

Constructor & Destructor Documentation

◆ DebugVisitor()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
DebugVisitor< VertexID, Base, OStream >::DebugVisitor ( OStream *  debug_stream = nullptr)
inline

Definition at line 183 of file GraphAlgorithmHelpers.h.

Member Function Documentation

◆ onExamine()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
void DebugVisitor< VertexID, Base, OStream >::onExamine ( const VertexID &  v)
inline

Definition at line 185 of file GraphAlgorithmHelpers.h.

◆ onExamineEdge()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
void DebugVisitor< VertexID, Base, OStream >::onExamineEdge ( const VertexID &  source,
const VertexID &  target 
)
inline

Definition at line 195 of file GraphAlgorithmHelpers.h.

◆ onSkipped()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
void DebugVisitor< VertexID, Base, OStream >::onSkipped ( const VertexID &  v)
inline

Definition at line 190 of file GraphAlgorithmHelpers.h.

◆ onSkippedEdge()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
void DebugVisitor< VertexID, Base, OStream >::onSkippedEdge ( const VertexID &  source,
const VertexID &  target 
)
inline

Definition at line 200 of file GraphAlgorithmHelpers.h.

◆ onWaveEnd()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
void DebugVisitor< VertexID, Base, OStream >::onWaveEnd ( )
inline

Definition at line 205 of file GraphAlgorithmHelpers.h.

Member Data Documentation

◆ debug_stream

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>, typename OStream = std::ostream>
OStream* DebugVisitor< VertexID, Base, OStream >::debug_stream

Definition at line 182 of file GraphAlgorithmHelpers.h.


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