1 #ifndef GUI_SWU_GRAPH_MODEL_H_
2 #define GUI_SWU_GRAPH_MODEL_H_
7 #include "graph_model_item.h"
8 #include "graph_filter_list.h"
9 #include "graph_properties.h"
14 #include "algorithms.h"
15 #include "graph_model.h"
A class representing a single SWU in the QT graph model.
Definition: swu_graph_model_item.h:14
Grapher< NodeType *, EdgeType *, CompareSWUByName, CompareSWUDependency > GraphType
Typedef for the graph type that this model supports.
Definition: swu_graph_model.h:33
Definition: graph_model.h:36
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.
Definition: swu_graph_model.cc:21
Dependency< SWU, SWU > EdgeType
Typedef to provide information about which edge this graph stores.
Definition: swu_graph_model.h:30
QModelIndex parent(const QModelIndex &index) const
Provides the parent for a given index.
Definition: graph_model.cc:44
Forward declarations for functors.
Definition: defines.h:32
Definition: graph_filter_list.h:16
E_type edge_value_type
Accessor for the type of value stored in the edges.
Definition: grapher.h:58
Definition: graph_properties.h:7
V_type node_value_type
Accessor for the type of value stored in the nodes.
Definition: grapher.h:55
SWUGraphModel(GraphType *g, QObject *parent=0)
Constructor, provide a graph from which to construct this Graph Model with.
Definition: swu_graph_model.cc:3
SWU NodeType
Typedef to provide information about which node this graph stores.
Definition: swu_graph_model.h:27
void buildGraph(GraphFilterList< GraphType > *filter_=0, GraphProperties< GraphType > *properties=0)
This builds the internal data model as an adjacency list (used for graph representations) ...
Definition: swu_graph_model.cc:74
Definition: swu_graph_model.h:24
unsigned int index_type_t
The type of index used for the nodes in the graph.
Definition: grapher.h:52