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