![]() |
aGrUM
0.16.0
|
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 49 of file undiGraphListener.h.
gum::UndiGraphListener::UndiGraphListener | ( | UndiGraph * | g | ) |
default constructor
g | the graph to listen to |
Definition at line 47 of file undiGraphListener.cpp.
References _graph, GUM_CONNECT, GUM_ERROR, whenEdgeAdded(), whenEdgeDeleted(), whenNodeAdded(), and whenNodeDeleted().
gum::UndiGraphListener::~UndiGraphListener | ( | ) |
destructor
Definition at line 63 of file undiGraphListener.cpp.
|
private |
copy constructor (for the moment, this operation is forbidden)
d | the UndiGraphListener to copy |
Definition at line 37 of file undiGraphListener.cpp.
References GUM_ERROR.
|
inherited |
|
inherited |
|
private |
copy operator (for the moment, this operation is forbidden)
d | the UndiGraphListener to copy |
Definition at line 42 of file undiGraphListener.cpp.
References GUM_ERROR.
|
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 UndiGraphListener().
|
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 UndiGraphListener().
|
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 UndiGraphListener().
|
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 UndiGraphListener().
|
protected |
the graph to listen to
Definition at line 100 of file undiGraphListener.h.
Referenced by UndiGraphListener().