![]() |
fpmas 1.6
|
#include <distributed_edge.h>


Public Member Functions | |
| virtual LocationState | state () const =0 |
| virtual void | setState (LocationState state)=0 |
| virtual void | setTempSourceNode (std::unique_ptr< api::graph::TemporaryNode< T > > temp_src)=0 |
| virtual std::unique_ptr< TemporaryNode< T > > | getTempSourceNode ()=0 |
| virtual void | setTempTargetNode (std::unique_ptr< api::graph::TemporaryNode< T > > temp_tgt)=0 |
| virtual std::unique_ptr< TemporaryNode< T > > | getTempTargetNode ()=0 |
Public Member Functions inherited from fpmas::api::graph::Edge< DistributedId, DistributedNode< T > > | |
| virtual IdType | getId () const=0 |
| virtual LayerId | getLayer () const=0 |
| virtual void | setLayer (LayerId layer)=0 |
| virtual float | getWeight () const=0 |
| virtual void | setWeight (float weight)=0 |
| virtual void | setSourceNode (NodeType *const src)=0 |
| virtual NodeType * | getSourceNode () const=0 |
| virtual void | setTargetNode (NodeType *const tgt)=0 |
| virtual NodeType * | getTargetNode () const=0 |
Additional Inherited Members | |
Public Types inherited from fpmas::api::graph::Edge< DistributedId, DistributedNode< T > > | |
| typedef DistributedId | IdType |
| typedef DistributedNode< T > | NodeType |
DistributedEdge API.
The DistributedEdge is an extension of the Edge API, specialized using DistributedId and DistributedNode, and introduces some distribution related concepts.
| T | associated node data type |
|
pure virtual |
Current state of the edge.
A DistributedEdge is LOCAL iff its source and target nodes are LOCAL.
Implemented in fpmas::graph::DistributedEdge< T >.
|
pure virtual |
Updates the state of the edge.
Only intended for internal / serialization usage.
| state | new state |
Implemented in fpmas::graph::DistributedEdge< T >.
|
pure virtual |
Sets the temporary source node of this DistributedEdge.
The temp_src unique_ptr is moved internally so that the current DistributedEdge instance takes ownership of it.
This unique_ptr instance can be retrieve from getTempSourceNode().
| temp_src | pointer to temporary source node |
|
pure virtual |
Gets the current temporary source node attached to this DistributedEdge.
The caller takes ownership of the unique_ptr, leaving the current temporary source node in a null state.
getTempSourceNode() call: However, the following is valid:
Implemented in fpmas::graph::DistributedEdge< T >.
|
pure virtual |
Sets the temporary target node of this DistributedEdge.
The temp_tgt unique_ptr is moved internally so that the current DistributedEdge instance takes ownership of it.
This unique_ptr instance can be retrieve from getTempTargetNode().
| temp_tgt | pointer to temporary target node |
|
pure virtual |
Gets the current temporary target node attached to this DistributedEdge.
The caller takes ownership of the unique_ptr, leaving the current temporary target node in a null state.
Implemented in fpmas::graph::DistributedEdge< T >.