GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Public Types | Public Member Functions | List of all members
ModuleGraphModel Class Reference

#include <module_graph_model.h>

Inheritance diagram for ModuleGraphModel:
Inheritance graph
[legend]
Collaboration diagram for ModuleGraphModel:
Collaboration graph
[legend]

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.
 
GraphTypegrapher ()
 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
GraphModelItemroot_item_
 Root Item for the data model. This is a no-use item.
 

Detailed Description

This is a subclass used for build QT data models using Module graphs. That is graphs of type Grapher<Module, Dependency<Module,Module>>.


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