![]() |
fpmas 1.6
|
#include <distributed_graph.h>
Public Types | |
enum | Context { IMPORT_NEW_DISTANT , EXPORT_DISTANT , UNSPECIFIED } |
Public Member Functions | |
SetDistantNodeEvent (DistributedNode< T > *node, Context context) | |
![]() | |
NodeEvent (DistributedNode< T > *node) | |
Public Attributes | |
Context | context |
![]() | |
DistributedNode< T > * | node |
Event triggered when a node is set DISTANT within a DistributedGraph.
Such event can be handled with callbacks provided to DistributedGraph::addCallOnSetDistant().
In addition to the node instance, information about the context of the event are provided.
enum fpmas::api::graph::SetDistantNodeEvent::Context |
Specifies the cause of the set DISTANT operation.
Enumerator | |
---|---|
IMPORT_NEW_DISTANT | Used when a DISTANT node is inserted in the graph as a source or target node of a DISTANT edge. |
EXPORT_DISTANT | Used when a LOCAL node is exported because of a DistributedGraph::distribute() operation, so that the LOCAL node becomes DISTANT. |
UNSPECIFIED | Can be used when the event context is unspecified or does not falls in the other explicit contexts. Can also be useful for tests that does not depend on the context. |
|
inline |
SetDistantNodeEvent constructor.
Context fpmas::api::graph::SetDistantNodeEvent< T >::context |
Event context.