25 #ifndef GUM_DIGRAPH_LISTENER_H 26 #define GUM_DIGRAPH_LISTENER_H 110 #ifndef GUM_NO_INLINE 112 #endif // GUM_NOINLINE 114 #endif // GUM_DIGRAPH_LISTENER_H Abstract Base class for all diGraph Listener.
DiGraphListener(const DiGraph *g)
default constructor
Base classes for oriented graphs.
virtual void whenArcAdded(const void *src, NodeId from, NodeId to)=0
the action to take when a new arc is inserted into the graph
virtual void whenNodeDeleted(const void *src, NodeId id)=0
the action to take when a node has just been removed from the graph
gum is the global namespace for all aGrUM entities
Base class for all oriented graphs.
DiGraphListener & operator=(const DiGraphListener &d)
copy operator (for the moment, this operation is forbidden)
Inline implementation fo base classes for oriented graphs listener.
~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
Size NodeId
Type for node ids.
Every class who would catch signal from signaler should derive from Listener.