![]() |
aGrUM
0.16.0
|
Abstract Base class for all diGraph Listener. More...
#include <diGraphListener.h>
Public Member Functions | |
void | attachSignal__ (__sig__::ISignaler *sender) |
void | detachSignal__ (__sig__::ISignaler *sender) |
Constructors / Destructors | |
DiGraphListener (const DiGraph *g) | |
default constructor More... | |
~DiGraphListener () | |
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... | |
Protected Attributes | |
DiGraph * | _graph |
the graph to listen to More... | |
Abstract Base class for all diGraph Listener.
This is the virtual base class for graphs meta-listener.
A DiGraphListener will have to implement following pure methods :
Definition at line 49 of file diGraphListener.h.
gum::DiGraphListener::DiGraphListener | ( | const DiGraph * | g | ) |
default constructor
g | the graph to listen to. |
Definition at line 47 of file diGraphListener.cpp.
References _graph, GUM_CONNECT, GUM_ERROR, whenArcAdded(), whenArcDeleted(), whenNodeAdded(), and whenNodeDeleted().
gum::DiGraphListener::~DiGraphListener | ( | ) |
destructor
Definition at line 62 of file diGraphListener.cpp.
|
private |
copy constructor (for the moment, this operation is forbidden)
d | the DiGraphListener to copy |
Definition at line 37 of file diGraphListener.cpp.
References GUM_ERROR.
|
inherited |
|
inherited |
|
private |
copy operator (for the moment, this operation is forbidden)
d | the DiGraphListener to copy |
Definition at line 42 of file diGraphListener.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 |
Implemented in gum::BayesNetFragment< GUM_SCALAR >.
Referenced by DiGraphListener().
|
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 |
Implemented in gum::BayesNetFragment< GUM_SCALAR >.
Referenced by DiGraphListener().
|
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 |
Implemented in gum::BayesNetFragment< GUM_SCALAR >.
Referenced by DiGraphListener().
|
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 |
Implemented in gum::BayesNetFragment< GUM_SCALAR >.
Referenced by DiGraphListener().
|
protected |
the graph to listen to
Definition at line 99 of file diGraphListener.h.
Referenced by DiGraphListener().