![]() |
aGrUM
0.17.2
a C++ library for (probabilistic) graphical models
|
Abstract Base class for all mixed Graph Listener. More...
#include <mixedGraphListener.h>
Public Member Functions | |
void | attachSignal__ (__sig__::ISignaler *sender) |
void | detachSignal__ (__sig__::ISignaler *sender) |
Constructors / Destructors | |
MixedGraphListener (MixedGraph *g) | |
default constructor More... | |
~MixedGraphListener () | |
destructor More... | |
signals to listen to | |
virtual void | whenNodeAdded (const void *src, NodeId id)=0 |
the action to take when a new node is inserted into the graph More... | |
virtual void | whenNodeDeleted (const void *src, NodeId id)=0 |
the action to take when a node has just been removed from the graph More... | |
virtual void | whenArcAdded (const void *src, NodeId from, NodeId to)=0 |
the action to take when a new arc is inserted into the graph More... | |
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 More... | |
virtual void | whenEdgeAdded (const void *src, NodeId id1, NodeId id2)=0 |
the action to take when a new edge is inserted into the graph More... | |
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 More... | |
Protected Attributes | |
MixedGraph * | _graph |
the graph to listen to More... | |
Abstract Base class for all mixed Graph Listener.
This is the virtual base class for mixed graphs meta-listener.
A MixedGraphListener will have to implement following pure methods :
Definition at line 51 of file mixedGraphListener.h.
gum::MixedGraphListener::MixedGraphListener | ( | MixedGraph * | g | ) |
default constructor
g | the graph to listen to |
Definition at line 47 of file mixedGraphListener.cpp.
References _graph, GUM_CONNECT, GUM_ERROR, whenArcAdded(), whenArcDeleted(), whenEdgeAdded(), whenEdgeDeleted(), whenNodeAdded(), and whenNodeDeleted().
gum::MixedGraphListener::~MixedGraphListener | ( | ) |
destructor
Definition at line 68 of file mixedGraphListener.cpp.
|
private |
copy constructor (for the moment, this operation is forbidden)
d | the MixedGraphListener to copy |
Definition at line 37 of file mixedGraphListener.cpp.
References GUM_ERROR.
|
inherited |
|
inherited |
|
private |
copy operator (for the moment, this operation is forbidden)
d | the MixedGraphListener to copy |
Definition at line 42 of file mixedGraphListener.cpp.
References GUM_ERROR.
|
pure virtual |
the action to take when a new arc is inserted into the graph
src | the object that sent the signal |
from | the id of tail of the new arc inserted into the graph |
to | the id of head of the new arc inserted into the graph |
Referenced by MixedGraphListener().
|
pure virtual |
the action to take when an arc has just been removed from the graph
src | the object that sent the signal |
from | the id of tail of the arc removed from the graph |
to | the id of head of the arc removed from the graph |
Referenced by MixedGraphListener().
|
pure virtual |
the action to take when a new edge is inserted into the graph
src | the object that sent the signal |
id1 | the id of one node of the edge inserted into the graph |
id2 | the id of the other node of the edge inserted into the graph |
Referenced by MixedGraphListener().
|
pure virtual |
the action to take when an edge has just been removed from the graph
src | the object that sent the signal |
from | the id of one node of the edge removed from the graph |
to | the id of the other node of the edge removed from the graph |
Referenced by MixedGraphListener().
|
pure virtual |
the action to take when a new node is inserted into the graph
src | the object that sent the signal |
id | the id of the new node inserted into the graph |
Referenced by MixedGraphListener().
|
pure virtual |
the action to take when a node has just been removed from the graph
src | the object that sent the signal |
id | the id of the node has just been removed from the graph |
Referenced by MixedGraphListener().
|
protected |
the graph to listen to
Definition at line 114 of file mixedGraphListener.h.
Referenced by MixedGraphListener().