Abstract Base class for all mixed Graph Listener.
More...
#include <mixedGraphListener.h>
|
void | _attachSignal_ (__sig__::ISignaler *sender) |
|
void | _detachSignal_ (__sig__::ISignaler *sender) |
|
|
| MixedGraphListener (MixedGraph *g) |
| default constructor More...
|
|
| ~MixedGraphListener () |
| destructor More...
|
|
|
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...
|
|
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 :
- void whenNodeAdded( const void * ,gum::NodeId )
- void whenNodeDeleted( const void *,gum::NodeId )
- void whenArcAdded( const void *,gum::NodeId,gum::NodeId )
- void whenArcDeleted( const void *,gum::NodeId,gum::NodeId )
- void whenEdgeAdded( const void *,gum::NodeId,gum::NodeId )
- void whenEdgeDeleted( const void *,gum::NodeId,gum::NodeId )
Definition at line 50 of file mixedGraphListener.h.
◆ MixedGraphListener() [1/2]
gum::MixedGraphListener::MixedGraphListener |
( |
MixedGraph * |
g | ) |
|
default constructor
- Parameters
-
- Warning
- Note that, by the aGrUM's constructor parameter's rule, the fact that g is passed as a pointer means that g is not copied, but only referenced by the listener.
Definition at line 46 of file mixedGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
47 if (!g) {
GUM_ERROR(OperationNotAllowed,
"A graph listener need a graph to listen to") }
virtual void whenEdgeAdded(const void *src, NodeId id1, NodeId id2)=0
the action to take when a new edge is inserted into the graph
virtual void whenArcAdded(const void *src, NodeId from, NodeId to)=0
the action to take when a new arc is inserted into the graph
MixedGraph * graph_
the graph to listen to
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
virtual void whenNodeAdded(const void *src, NodeId id)=0
the action to take when a new node is inserted into the graph
MixedGraphListener(MixedGraph *g)
default constructor
#define GUM_CONNECT(sender, signal, receiver, target)
virtual void whenNodeDeleted(const void *src, NodeId id)=0
the action to take when a node has just been removed from the graph
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
#define GUM_ERROR(type, msg)
◆ ~MixedGraphListener()
gum::MixedGraphListener::~MixedGraphListener |
( |
| ) |
|
◆ MixedGraphListener() [2/2]
copy constructor (for the moment, this operation is forbidden)
- Parameters
-
Definition at line 36 of file mixedGraphListener.cpp.
References gum::Set< Key, Alloc >::emplace().
38 GUM_ERROR(OperationNotAllowed,
"No copy constructor for MixedGraphListener")
MixedGraphListener(MixedGraph *g)
default constructor
#define GUM_ERROR(type, msg)
◆ _attachSignal_()
INLINE void gum::Listener::_attachSignal_ |
( |
__sig__::ISignaler * |
sender | ) |
|
|
inherited |
◆ _detachSignal_()
INLINE void gum::Listener::_detachSignal_ |
( |
__sig__::ISignaler * |
sender | ) |
|
|
inherited |
◆ operator=()
◆ whenArcAdded()
virtual void gum::MixedGraphListener::whenArcAdded |
( |
const void * |
src, |
|
|
NodeId |
from, |
|
|
NodeId |
to |
|
) |
| |
|
pure virtual |
the action to take when a new arc is inserted into the graph
- Parameters
-
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 |
◆ whenArcDeleted()
virtual void gum::MixedGraphListener::whenArcDeleted |
( |
const void * |
src, |
|
|
NodeId |
from, |
|
|
NodeId |
to |
|
) |
| |
|
pure virtual |
the action to take when an arc has just been removed from the graph
- Parameters
-
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 |
◆ whenEdgeAdded()
virtual void gum::MixedGraphListener::whenEdgeAdded |
( |
const void * |
src, |
|
|
NodeId |
id1, |
|
|
NodeId |
id2 |
|
) |
| |
|
pure virtual |
the action to take when a new edge is inserted into the graph
- Parameters
-
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 |
◆ whenEdgeDeleted()
virtual void gum::MixedGraphListener::whenEdgeDeleted |
( |
const void * |
src, |
|
|
NodeId |
from, |
|
|
NodeId |
to |
|
) |
| |
|
pure virtual |
the action to take when an edge has just been removed from the graph
- Parameters
-
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 |
◆ whenNodeAdded()
virtual void gum::MixedGraphListener::whenNodeAdded |
( |
const void * |
src, |
|
|
NodeId |
id |
|
) |
| |
|
pure virtual |
the action to take when a new node is inserted into the graph
- Parameters
-
src | the object that sent the signal |
id | the id of the new node inserted into the graph |
◆ whenNodeDeleted()
virtual void gum::MixedGraphListener::whenNodeDeleted |
( |
const void * |
src, |
|
|
NodeId |
id |
|
) |
| |
|
pure virtual |
the action to take when a node has just been removed from the graph
- Parameters
-
src | the object that sent the signal |
id | the id of the node has just been removed from the graph |
◆ graph_
The documentation for this class was generated from the following files: