graph_analysis
EdgeMimeData.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_EDGEMIMEDATA_H
2 #define GRAPH_ANALYSIS_EDGEMIMEDATA_H
3 
4 #include "../Vertex.hpp"
5 #include <QMimeData>
6 
7 namespace graph_analysis
8 {
9 namespace gui
10 {
11 
25 class EdgeMimeData : public QMimeData
26 {
27 public:
28  EdgeMimeData(Vertex::Ptr& sourceVertex, Vertex::Ptr& targetVertex);
31 
41  bool sourceVertexIsSameAs(const Vertex::Ptr& other) const;
42 };
43 
44 } // end namespace gui
45 } // end namespace graph_analysis
46 
47 #endif /*GRAPH_ANALYSIS_EDGEMIMEDATA_H*/
Vertex::Ptr & mpTargetVertex
Definition: EdgeMimeData.hpp:30
bool sourceVertexIsSameAs(const Vertex::Ptr &other) const
compares the stored reference to the other vertex given.
Definition: EdgeMimeData.cpp:17
Vertex::Ptr & mpSourceVertex
Definition: EdgeMimeData.hpp:29
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
EdgeMimeData(Vertex::Ptr &sourceVertex, Vertex::Ptr &targetVertex)
Definition: EdgeMimeData.cpp:11
custom class for drag-n-drop of edges
Definition: EdgeMimeData.hpp:25