GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
module_graph_model_item.h
1 #ifndef GUI_MODULE_GRAPH_MODEL_ITEM_H_
2 #define GUI_MODULE_GRAPH_MODEL_ITEM_H_
3 
4 #include "module.h"
5 
6 #include "graph_model.h"
7 #include "graph_model_item.h"
8 #include "module_graph_model.h"
9 #include <QDebug>
10 
11 
13 class ModuleGraphModelItem : public GenericGraphModelItem<Module, ModuleGraphModel::EdgeType> {
14  public:
16  ModuleGraphModelItem(Module* node, std::vector<ModuleGraphModel::EdgeType*>* edges, std::vector<ModuleGraphModel::EdgeType*>* incoming_edges, GraphModelItem* parent = 0, ModuleGraphModel::EdgeType* parent_edge = 0);
17 
19  virtual QVariant data(int column) const;
20 };
21 
22 
23 #endif
Module * node()
Return the underlying node.
Definition: graph_model_item.h:156
Forward declarations for functors.
Definition: defines.h:32
virtual QVariant data(int column) const
This reimplements the data method to pick out the data relevant only for modules. ...
Definition: module_graph_model_item.cc:13
ModuleGraphModelItem(Module *node, std::vector< ModuleGraphModel::EdgeType * > *edges, std::vector< ModuleGraphModel::EdgeType * > *incoming_edges, GraphModelItem *parent=0, ModuleGraphModel::EdgeType *parent_edge=0)
Default constructor. Simply calls constructor of parent.
Definition: module_graph_model_item.cc:4
GraphModelItem * parent()
Returns the parent of this node.
Definition: graph_model_item.cc:102
std::vector< ModuleGraphModel::EdgeType * > * edges()
Return the list of edge datas belonging to this node.
Definition: graph_model_item.h:161
A class representing a single Module in the QT graph model. This reimplements.
Definition: module_graph_model_item.h:13
Definition: module.h:21
Definition: graph_model_item.h:22
Definition: graph_model_item.h:138
std::vector< ModuleGraphModel::EdgeType * > * incoming_edges()
Return the list of edge datas belonging to this node.
Definition: graph_model_item.h:166