GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
|
#include <swu_graph_model.h>
Public Types | |
typedef SWU | NodeType |
Typedef to provide information about which node this graph stores. | |
typedef Dependency< SWU, SWU > | EdgeType |
Typedef to provide information about which edge this graph stores. | |
typedef Grapher< NodeType *, EdgeType *, CompareSWUByName, CompareSWUDependency > | GraphType |
Typedef for the graph type that this model supports. | |
Public Member Functions | |
SWUGraphModel (GraphType *g, QObject *parent=0) | |
Constructor, provide a graph from which to construct this Graph Model with. | |
void | buildTree (SWU *root, bool dependents, bool dependencies, GraphFilterList< GraphType > *filter=0, GraphProperties< GraphType > *properties=0) |
This builds the internal data model with the root as a specific SWU. | |
void | buildGraph (GraphFilterList< GraphType > *filter_=0, GraphProperties< GraphType > *properties=0) |
This builds the internal data model as an adjacency list (used for graph representations) | |
GraphType * | grapher () |
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 SWU graphs. That is graphs of type Grapher<SWU, Dependency<SWU,SWU>>