GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
|
#include <module_graph_model.h>
Public Types | |
typedef Module | NodeType |
typedef Dependency< Module, Module > | EdgeType |
typedef Grapher< NodeType *, EdgeType *, CompareModuleByName, CompareModuleDependency > | GraphType |
Public Member Functions | |
ModuleGraphModel (GraphType *g, QObject *parent=0) | |
void | buildTree (NodeType *root, GraphFilterList< GraphType > *filter=0) |
Methods to build an internal data model in the form of a tree. | |
void | buildGraph (GraphFilterList< GraphType > *filter=0) |
Methods to build an internal data model in the form of an adjacency list. | |
GraphType * | grapher () |
Access the internal grapher object. | |
Public Member Functions inherited from GraphModel | |
GraphModel (QObject *parent=0) | |
QVariant | data (const QModelIndex &index, int role) const |
Overloads of functions required for QAbstractItemModel interface. | |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
Provides the index for a specific position in the model. | |
QModelIndex | parent (const QModelIndex &index) const |
Provides the parent for a given index. | |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Number of rows. | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
Number of columns. | |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
Provides header to use. | |
Additional Inherited Members | |
Public Attributes inherited from GraphModel | |
std::map< std::string, GraphModelItem * > | items |
List of nodes that are in this tree, indexed by name in this case that might change later (?) | |
Protected Attributes inherited from GraphModel | |
GraphModelItem * | root_item_ |
Root Item for the data model. This is a no-use item. | |
This is a subclass used for build QT data models using Module graphs. That is graphs of type Grapher<Module, Dependency<Module,Module>>.