AST_Graph::writeGraphOfAstSubGraphToFile
writeGraphOfAstSubGraphToFile overloads
Synopses
Declared in <src/midend/astDump/astGraph.h>
** The function void writeGraphOfAstSubGraphToFile(std::string filename,SgNode*, intdepth, bool); does the same as the function voidwriteGraphOfAstSubGraphToFile(std::string,SgNode*, Functional1, Functional2,int, bool); except there is no filters Functional1 and Functional2 to filteron nodes and edges.**
[[visibility]]
void
writeGraphOfAstSubGraphToFile(
std::string filename,
SgNode* node,
AST_Graph::pointerHandling graphNullPointers,
int depth = ‐1);
** The function void writeGraphOfAstSubGraphToFile(std::string filename,SgNode*,Functional1, int depth, bool); does the same as the function voidwriteGraphOfAstSubGraphToFile(std::string,SgNode*, Functional1, Functional2,int, bool); except there is no filter Functional2 to filter on edges.**
template<typename Functional1>
[[visibility]]
void
writeGraphOfAstSubGraphToFile(
std::string filename,
SgNode* node,
AST_Graph::pointerHandling graphNullPointers,
Functional1 addNode,
int depth = ‐1);
*** The functon void writeGraphOfAstSubGraphToFile(std::string filename, SgNode*,Functional1, Functional2, int, bool); will output a graph of the subgraph ofthe AST SgNode in the second argument into a file 'filename'. The thirdarguemtn is a custom functional on the form unary_function<std::pair<SgNode*,std:string>,bool > where the first template argument is a node and it's name while the secondtemplate argument is the return type (see defaultFilterUnary for an example). The fourth argument is a custom functional to filter edges on the form binary_function<SgNode*,std::pair<SgNode*,std:string>,bool > where the edge goes from the vertex in the first template argument to thevertex in the second template argument (see defaultFilterBinary for anexample).
template<
typename Functional1,
typename Functional2>
[[visibility]]
void
writeGraphOfAstSubGraphToFile(
std::string filename,
SgNode* node,
AST_Graph::pointerHandling graphNullPointers,
Functional1 addNode,
Functional2 addEdge,
int depth = ‐1);
Created with MrDocs