LLVM API Documentation
#include <DOTGraphTraits.h>
Inheritance diagram for llvm::DefaultDOTGraphTraits:
Static Public Member Functions | |
static std::string | getGraphName (const void *Graph) |
static std::string | getGraphProperties (const void *Graph) |
static std::string | getNodeLabel (const void *Node, const void *Graph) |
static std::string | getNodeAttributes (const void *Node) |
template<typename EdgeIter> | |
static std::string | getEdgeAttributes (const void *Node, EdgeIter EI) |
template<typename EdgeIter> | |
static std::string | getEdgeSourceLabel (const void *Node, EdgeIter I) |
template<typename EdgeIter> | |
static bool | edgeTargetsEdgeSource (const void *Node, EdgeIter I) |
template<typename EdgeIter> | |
static EdgeIter | getEdgeTarget (const void *Node, EdgeIter I) |
template<typename GraphWriter> | |
static void | addCustomGraphFeatures (const void *Graph, GraphWriter &GW) |
Definition at line 29 of file DOTGraphTraits.h.
|
addCustomGraphFeatures - If a graph is made up of more than just straight-forward nodes and edges, this is the place to put all of the custom stuff necessary. The GraphWriter object, instantiated with your GraphType is passed in as an argument. You may call arbitrary methods on it to add things to the output graph. Definition at line 89 of file DOTGraphTraits.h. |
|
edgeTargetsEdgeSource - This method returns true if this outgoing edge should actually target another edge source, not a node. If this method is implemented, getEdgeTarget should be implemented. Definition at line 70 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeEdge(). |
|
If you want to override the dot attributes printed for a particular edge, override this method. Definition at line 55 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeEdge(). |
|
getEdgeSourceLabel - If you want to label the edge source itself, implement this method. Definition at line 62 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeNode(). |
|
getEdgeTarget - If edgeTargetsEdgeSource returns true, this method is called to determine which outgoing edge of Node is the target of this edge. Definition at line 78 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeEdge(). |
|
getGraphName - Return the label for the graph as a whole. Printed at the top of the graph. Definition at line 33 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeHeader(). |
|
getGraphProperties - Return any custom properties that should be included in the top level graph structure for dot. Definition at line 38 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeHeader(). |
|
If you want to specify custom node attributes, this is the place to do so Definition at line 50 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeNode(). |
|
getNodeLabel - Given a node and a pointer to the top level graph, return the label to print in the node. Definition at line 44 of file DOTGraphTraits.h. Referenced by llvm::GraphWriter< GraphType >::writeNode(). |