aGrUM  0.16.0
mixedGraphListener.h
Go to the documentation of this file.
1 
28 #ifndef GUM_MIXEDGRAPH_LISTENER_H
29 #define GUM_MIXEDGRAPH_LISTENER_H
30 
33 
34 namespace gum {
51  class MixedGraphListener : public Listener {
52  public:
53  // ############################################################################
55  // ############################################################################
57 
59 
64 
67 
69 
70  // ############################################################################
72  // ############################################################################
74 
76 
78  virtual void whenNodeAdded(const void* src, NodeId id) = 0;
79 
81 
83  virtual void whenNodeDeleted(const void* src, NodeId id) = 0;
84 
86 
89  virtual void whenArcAdded(const void* src, NodeId from, NodeId to) = 0;
90 
92 
95  virtual void whenArcDeleted(const void* src, NodeId from, NodeId to) = 0;
96 
98 
102  virtual void whenEdgeAdded(const void* src, NodeId id1, NodeId id2) = 0;
103 
105 
108  virtual void whenEdgeDeleted(const void* src, NodeId from, NodeId to) = 0;
109 
111 
112  protected:
115 
116  private:
118 
120 
122 
124  };
125 
126 } // namespace gum
127 
128 #ifndef GUM_NO_INLINE
130 #endif // GUM_NOINLINE
131 
132 #endif // GUM_MIXEDGRAPH_LISTENER_H
virtual void whenEdgeAdded(const void *src, NodeId id1, NodeId id2)=0
the action to take when a new edge is inserted into the graph
MixedGraph * _graph
the graph to listen to
MixedGraphListener & operator=(const MixedGraphListener &d)
copy operator (for the moment, this operation is forbidden)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void whenArcAdded(const void *src, NodeId from, NodeId to)=0
the action to take when a new arc is inserted into the graph
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
virtual void whenEdgeDeleted(const void *src, NodeId from, NodeId to)=0
the action to take when an edge has just been removed from the graph
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Abstract Base class for all mixed Graph Listener.
virtual void whenNodeAdded(const void *src, NodeId id)=0
the action to take when a new node is inserted into the graph
MixedGraphListener(MixedGraph *g)
default constructor
virtual void whenNodeDeleted(const void *src, NodeId id)=0
the action to take when a node has just been removed from the graph
virtual void whenArcDeleted(const void *src, NodeId from, NodeId to)=0
the action to take when an arc has just been removed from the graph
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size NodeId
Type for node ids.
Definition: graphElements.h:98
Every class who would catch signal from signaler should derive from Listener.
Definition: listener.h:74
Base class for mixed graphs.
Definition: mixedGraph.h:127