DetectorGraph  2.0
Public Member Functions | List of all members
DetectorGraph::GraphAnalyzer Class Reference

Class that provides debugging/diagnostics to a DetectorGraph detector graph. More...

Collaboration diagram for DetectorGraph::GraphAnalyzer:

Public Member Functions

 GraphAnalyzer (const Graph &aGraph)
 
void SetStringFilter (std::string(*aStringFilter)(const std::string &))
 Sets a filter to produce readable names from mangle C++ ones. More...
 
void SetLabelWordWrapper (std::string(*aStringFilter)(const std::string &))
 Sets a filter to insert
at specific points. More...
 
void GenerateDotFile (const std::string &aOutFilePath) const
 Print to aOutFilePath a graphviz visualization of the graph. More...
 
void PrintVertexes () const
 Prints to stdout the names of all vertices in the current order. More...
 
bool HasPublicConflict () const
 Prints whether two detectors post to the same public Topic. More...
 

Detailed Description

Class that provides debugging/diagnostics to a DetectorGraph detector graph.

Definition at line 31 of file graphanalyzer.hpp.

Constructor & Destructor Documentation

◆ GraphAnalyzer()

DetectorGraph::GraphAnalyzer::GraphAnalyzer ( const Graph aGraph)

Definition at line 29 of file graphanalyzer.cpp.

Member Function Documentation

◆ GenerateDotFile()

void DetectorGraph::GraphAnalyzer::GenerateDotFile ( const std::string &  aOutFilePath) const

Print to aOutFilePath a graphviz visualization of the graph.

Definition at line 46 of file graphanalyzer.cpp.

◆ HasPublicConflict()

bool DetectorGraph::GraphAnalyzer::HasPublicConflict ( ) const

Prints whether two detectors post to the same public Topic.

Definition at line 139 of file graphanalyzer.cpp.

◆ PrintVertexes()

void DetectorGraph::GraphAnalyzer::PrintVertexes ( ) const

Prints to stdout the names of all vertices in the current order.

Definition at line 127 of file graphanalyzer.cpp.

◆ SetLabelWordWrapper()

void DetectorGraph::GraphAnalyzer::SetLabelWordWrapper ( std::string(*)(const std::string &)  aStringFilter)

Sets a filter to insert
at specific points.

If not set NodeNameUtils::WrapOnCommonEndings

Definition at line 41 of file graphanalyzer.cpp.

◆ SetStringFilter()

void DetectorGraph::GraphAnalyzer::SetStringFilter ( std::string(*)(const std::string &)  aStringFilter)

Sets a filter to produce readable names from mangle C++ ones.

If not set, NodeNameUtils::GetMinimalName will be used.

Definition at line 36 of file graphanalyzer.cpp.


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