![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
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 48 of file diGraphListener.h.
gum::DiGraphListener::DiGraphListener | ( | const DiGraph * | g | ) |
default constructor
g | the graph to listen to. |
Definition at line 46 of file diGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::DiGraphListener::~DiGraphListener | ( | ) |
destructor
Definition at line 58 of file diGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
copy constructor (for the moment, this operation is forbidden)
d | the DiGraphListener to copy |
Definition at line 36 of file diGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inherited |
Definition at line 35 of file listener_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
inherited |
Definition at line 37 of file listener_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
private |
copy operator (for the moment, this operation is forbidden)
d | the DiGraphListener to copy |
Definition at line 41 of file diGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
|
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 >.
|
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 >.
|
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 >.
|
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 >.
|
protected |
the graph to listen to
Definition at line 98 of file diGraphListener.h.