ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Callgraph Class Reference

callgraph, implemented with a boost graph More...

#include <Callgraph.h>

Inheritance diagram for Callgraph:
Collaboration diagram for Callgraph:

Public Member Functions

 Callgraph (long pid, long type, GlobalDatabaseConnection *gdb)
 constructor More...
 
 ~Callgraph ()
 destructor More...
 
- Public Member Functions inherited from DatabaseGraph< functionsRowdata, EdgeTypeEmpty, vecS, vecS, bidirectionalS, property< vertex_callgraph_t, callgraphVertexData, GraphvizVertexProperty >, GraphvizEdgeProperty, GraphvizGraphProperty >
 DatabaseGraph (long pid, long type, sqlite3x::sqlite3_connection *gdb)
 constructor More...
 
 ~DatabaseGraph ()
 destructor More...
 
dbgVertex insertVertex (functionsRowdata &e1, std::string name)
 add a vertex to the graph, returns the boost vertex descriptor More...
 
dbgVertex insertVertex (functionsRowdata &e, std::string name, int subgraphId, std::string subgraphName)
 add a vertex with subgraph information - subgraphs are currently not supported!!! More...
 
dbgEdgeReturn insertEdge (functionsRowdata &e1, functionsRowdata &e2, EdgeTypeEmpty &value)
 insert an edge between e1 and e2 More...
 
dbgEdgeReturn insertEdge (functionsRowdata &e1, functionsRowdata &e2)
 insert an edge between e1 and e2, using the empty edge data class More...
 
bool searchEdge (EdgeTypeEmpty &edge, dbgEdge &edesc) const
 search for a specific edge in the graph, using operator= on the id, returns false if not found More...
 
void setSubgraphInit (int refcol, dbRow *rowdata, int namecol)
 set subgraph initialization information More...
 
int clearSuccessors (functionsRowdata &parent)
 remove all successor pointers from a node More...
 
int removeNode (functionsRowdata &node)
 remove node from the tree More...
 
int nodeIsUsed (functionsRowdata &node)
 check if there is an edge in the graph pointing to this node More...
 
int getGraphId ()
 get graph id (this function creates an graphdata entry, if the id is not retrieved by another function yet) More...
 
void setNodeNameColumn (int set)
 set the column number of the VertexType column to take the node names from More...
 
int loadFromDatabase (void)
 load graph from datbase More...
 
int writeToDatabase (void)
 store graph in datbase More...
 
void writeToDOTFile (std::string filename)
 write DOT graph to filename More...
 
void writeAdjacencyMatrixToFileRaw (std::string filename)
 write the adjacency matrix to a file (only integer matrix entries, raw file format) More...
 
void writeAdjacencyMatrixToFileMcl (std::string filename)
 write the adjacency matrix to a file (in MCL raw file format for mcxassemble) More...
 

Additional Inherited Members

- Public Types inherited from DatabaseGraph< functionsRowdata, EdgeTypeEmpty, vecS, vecS, bidirectionalS, property< vertex_callgraph_t, callgraphVertexData, GraphvizVertexProperty >, GraphvizEdgeProperty, GraphvizGraphProperty >
typedef boost::adjacency_list
< vecS, vecS, bidirectionalS,
boost::property
< boost::vertex_index1_t,
std::size_t, boost::property
< boost::vertex_name_t,
std::string, boost::property
< boost::vertex_color_t,
boost::default_color_type,
boost::property
< boost::vertex_dbg_data_t,
functionsRowdata, property
< vertex_callgraph_t,
callgraphVertexData,
GraphvizVertexProperty >
> > > >, boost::property
< boost::edge_dbg_data_t,
EdgeTypeEmpty,
GraphvizEdgeProperty >
, boost::property
< boost::graph_dbg_data_t, int,
GraphvizGraphProperty > > 
dbgType
 boost graph typedefs More...
 
typedef boost::graph_traits
< dbgType >::vertex_descriptor 
dbgVertex
 
typedef boost::graph_traits
< dbgType >::vertex_iterator 
dbgVertexIterator
 
typedef boost::graph_traits
< dbgType >::edge_descriptor 
dbgEdge
 
typedef boost::graph_traits
< dbgType >::edge_iterator 
dbgEdgeIterator
 
typedef std::pair< bool, dbgEdgedbgEdgeReturn
 

Detailed Description

callgraph, implemented with a boost graph

Definition at line 40 of file Callgraph.h.

Constructor & Destructor Documentation

Callgraph::Callgraph ( long  pid,
long  type,
GlobalDatabaseConnection *  gdb 
)
inline

constructor

Definition at line 48 of file Callgraph.h.

Callgraph::~Callgraph ( )
inline

destructor

Definition at line 55 of file Callgraph.h.


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