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

#include <GraphAlgorithmHelpers.h>

Inheritance diagram for EventRecordingVisitor< VertexID, Base >:
DoNothingGraphVisitor< VertexID >

Classes

struct  Event
 

Public Member Functions

 EventRecordingVisitor ()=default
 
 EventRecordingVisitor (Base b)
 
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

std::vector< Eventexamine_order = {}
 

Detailed Description

template<typename VertexID, typename Base = DoNothingGraphVisitor<VertexID>>
struct EventRecordingVisitor< VertexID, Base >

Implements all callbacks, and records their order, along with the IDs passed.

Definition at line 215 of file GraphAlgorithmHelpers.h.

Constructor & Destructor Documentation

◆ EventRecordingVisitor() [1/2]

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
EventRecordingVisitor< VertexID, Base >::EventRecordingVisitor ( )
default

◆ EventRecordingVisitor() [2/2]

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
EventRecordingVisitor< VertexID, Base >::EventRecordingVisitor ( Base  b)
inline

Definition at line 254 of file GraphAlgorithmHelpers.h.

Member Function Documentation

◆ onExamine()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
void EventRecordingVisitor< VertexID, Base >::onExamine ( const VertexID &  v)
inline

Definition at line 256 of file GraphAlgorithmHelpers.h.

◆ onExamineEdge()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
void EventRecordingVisitor< VertexID, Base >::onExamineEdge ( const VertexID &  source,
const VertexID &  target 
)
inline

Definition at line 266 of file GraphAlgorithmHelpers.h.

◆ onSkipped()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
void EventRecordingVisitor< VertexID, Base >::onSkipped ( const VertexID &  v)
inline

Definition at line 261 of file GraphAlgorithmHelpers.h.

◆ onSkippedEdge()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
void EventRecordingVisitor< VertexID, Base >::onSkippedEdge ( const VertexID &  source,
const VertexID &  target 
)
inline

Definition at line 271 of file GraphAlgorithmHelpers.h.

◆ onWaveEnd()

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
void EventRecordingVisitor< VertexID, Base >::onWaveEnd ( )
inline

Definition at line 276 of file GraphAlgorithmHelpers.h.

Member Data Documentation

◆ examine_order

template<typename VertexID , typename Base = DoNothingGraphVisitor<VertexID>>
std::vector<Event> EventRecordingVisitor< VertexID, Base >::examine_order = {}

Definition at line 251 of file GraphAlgorithmHelpers.h.


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