Belle II Software development
cycle_detector Struct Reference

Simple struct to check boost graph for cyclic references. More...

Inheritance diagram for cycle_detector:

Public Member Functions

template<class Edge , class Graph >
void back_edge (Edge, Graph &)
 This method is invoked on back edges in the graph.
 

Detailed Description

Simple struct to check boost graph for cyclic references.

Definition at line 28 of file MCParticleGraph.cc.

Member Function Documentation

◆ back_edge()

void back_edge ( Edge  ,
Graph &   
)
inline

This method is invoked on back edges in the graph.

If a back edge is found, it means a cyclic reference was found and therefore an exception of type MCParticleGraph::CyclicReferenceError() is thrown.

Template Parameters
EdgeThe edge of the graph.
GraphReference to the graph itself.

Definition at line 36 of file MCParticleGraph.cc.

36{ throw MCParticleGraph::CyclicReferenceError(); }

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