27 #ifndef GUM_UNDIGRAPH_LISTENER_H 28 #define GUM_UNDIGRAPH_LISTENER_H 30 #include <agrum/tools/core/signal/listener.h> 31 #include <agrum/tools/graphs/undiGraph.h> 87 virtual void whenEdgeAdded(
const void* src, NodeId id1, NodeId id2) = 0;
93 virtual void whenEdgeDeleted(
const void* src, NodeId from, NodeId to) = 0;
113 #ifndef GUM_NO_INLINE 114 # include <agrum/tools/graphs/parts/listeners/undiGraphListener_inl.h> ~UndiGraphListener()
destructor
UndiGraphListener(const UndiGraphListener &d)
copy constructor (for the moment, this operation is forbidden)
INLINE void emplace(Args &&... args)
UndiGraphListener(UndiGraph *g)
default constructor
UndiGraphListener & operator=(const UndiGraphListener &d)
copy operator (for the moment, this operation is forbidden)
virtual void whenEdgeAdded(const void *src, NodeId id1, NodeId id2)=0
the action to take when a new edge is inserted into the graph
Abstract Base class for all undiGraph Listener.
UndiGraph * graph_
the graph to listen to
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 whenEdgeDeleted(const void *src, NodeId from, NodeId to)=0
the action to take when an edge has just been removed from the graph
virtual void whenNodeAdded(const void *src, NodeId id)=0
the action to take when a new node is inserted into the graph