![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Abstract Base class for all undiGraph Listener. More...
#include <undiGraphListener.h>
Public Member Functions | |
void | _attachSignal_ (__sig__::ISignaler *sender) |
void | _detachSignal_ (__sig__::ISignaler *sender) |
Constructors / Destructors | |
UndiGraphListener (UndiGraph *g) | |
default constructor More... | |
~UndiGraphListener () | |
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 | 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 | |
UndiGraph * | graph_ |
the graph to listen to More... | |
Abstract Base class for all undiGraph Listener.
This is the virtual base class for not-oriented graphs meta-listener.
An UndiGraphListener will have to implement following pure methods :
Definition at line 48 of file undiGraphListener.h.
gum::UndiGraphListener::UndiGraphListener | ( | UndiGraph * | g | ) |
default constructor
g | the graph to listen to |
Definition at line 46 of file undiGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::UndiGraphListener::~UndiGraphListener | ( | ) |
destructor
Definition at line 58 of file undiGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
copy constructor (for the moment, this operation is forbidden)
d | the UndiGraphListener to copy |
Definition at line 36 of file undiGraphListener.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 UndiGraphListener to copy |
Definition at line 41 of file undiGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
|
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 |
|
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 |
|
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 |
|
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 |
|
protected |
the graph to listen to
Definition at line 99 of file undiGraphListener.h.