27 #ifndef GUM_DIGRAPH_LISTENER_H 28 #define GUM_DIGRAPH_LISTENER_H 30 #include <agrum/tools/core/signal/listener.h> 31 #include <agrum/tools/graphs/diGraph.h> 86 virtual void whenArcAdded(
const void* src, NodeId from, NodeId to) = 0;
92 virtual void whenArcDeleted(
const void* src, NodeId from, NodeId to) = 0;
112 #ifndef GUM_NO_INLINE 113 # include <agrum/tools/graphs/parts/listeners/diGraphListener_inl.h> DiGraphListener(const DiGraphListener &d)
copy constructor (for the moment, this operation is forbidden)
Abstract Base class for all diGraph Listener.
DiGraphListener(const DiGraph *g)
default constructor
virtual void whenArcAdded(const void *src, NodeId from, NodeId to)=0
the action to take when a new arc is inserted into the graph
INLINE void emplace(Args &&... args)
virtual void whenNodeDeleted(const void *src, NodeId id)=0
the action to take when a node has just been removed from the graph
DiGraphListener & operator=(const DiGraphListener &d)
copy operator (for the moment, this operation is forbidden)
~DiGraphListener()
destructor
virtual void whenNodeAdded(const void *src, NodeId id)=0
the action to take when a new node is inserted into the graph
DiGraph * graph_
the graph to listen to
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