AST_Graph::writeGraphOfMemoryPoolToFile
writeGraphOfMemoryPoolToFile overloads
Synopses
Declared in <src/midend/astDump/astGraph.h>
* The function void writeGraphOfMemoryPoolToFile(std::string filename, boolgraphNullPointers = false); will output a graph of the whole memory pool to anew file called 'filename'. This function does exactly the same as thefunction void AST_Graph::writeGraphOfMemoryPoolToFile(std::string filename,Functional1, Functional2, bool graphNullPointers); except there is no filtersFilter1 and Filter2 on nodes and edges.**
[[visibility]]
void
writeGraphOfMemoryPoolToFile(
std::string filename,
AST_Graph::pointerHandling);
* The function void AST_Graph::writeGraphOfMemoryPoolToFile(std::string filename,Functional1, bool graphNullPointers); will output a graph of the whole memorypool to a new file called 'filename'. This function does exactly the same asthe function void AST_Graph::writeGraphOfMemoryPoolToFile(std::stringfilename, Functional1, Functional2, bool graphNullPointers); except there isno filter Filter2 so all edges are kept.**
template<typename Functional1>
[[visibility]]
void
writeGraphOfMemoryPoolToFile(
std::string filename,
AST_Graph::pointerHandling graphNullPointers,
Functional1 addNodeFunctional);
***** The function void AST_Graph::writeGraphOfMemoryPoolToFile(std::string filename,Functional1, Functional2, bool graphNullPointers); will output a graph of thewhole memory pool to a new file called 'filename'. The second argument is acustom 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 third 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
writeGraphOfMemoryPoolToFile(
std::string filename,
AST_Graph::pointerHandling graphNullPointers,
Functional1 addNodeFunctional,
Functional2 addEdgeFunctional);
Created with MrDocs