27 #ifndef GUM_MIXEDGRAPH_LISTENER_H 28 #define GUM_MIXEDGRAPH_LISTENER_H 30 #include <agrum/tools/core/signal/listener.h> 31 #include <agrum/tools/graphs/mixedGraph.h> 88 virtual void whenArcAdded(
const void* src, NodeId from, NodeId to) = 0;
94 virtual void whenArcDeleted(
const void* src, NodeId from, NodeId to) = 0;
101 virtual void whenEdgeAdded(
const void* src, NodeId id1, NodeId id2) = 0;
107 virtual void whenEdgeDeleted(
const void* src, NodeId from, NodeId to) = 0;
127 #ifndef GUM_NO_INLINE 128 # include <agrum/tools/graphs/parts/listeners/mixedGraphListener_inl.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
MixedGraphListener & operator=(const MixedGraphListener &d)
copy operator (for the moment, this operation is forbidden)
INLINE void emplace(Args &&... args)
virtual void whenArcAdded(const void *src, NodeId from, NodeId to)=0
the action to take when a new arc is inserted into the graph
MixedGraph * graph_
the graph to listen to
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
~MixedGraphListener()
destructor
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
MixedGraphListener(const MixedGraphListener &d)
copy constructor (for the moment, this operation is forbidden)