![]() |
fpmas 1.6
|
#include <distributed_edge.h>
Public Member Functions | |
DistributedEdge (DistributedId id, LayerId layer) | |
api::graph::LocationState | state () const override |
void | setState (api::graph::LocationState state) override |
void | setTempSourceNode (std::unique_ptr< api::graph::TemporaryNode< T > > temp_src) override |
std::unique_ptr< api::graph::TemporaryNode< T > > | getTempSourceNode () override |
void | setTempTargetNode (std::unique_ptr< api::graph::TemporaryNode< T > > temp_tgt) override |
std::unique_ptr< api::graph::TemporaryNode< T > > | getTempTargetNode () override |
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 |
![]() | |
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 |
![]() | |
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 | |
![]() | |
typedef _IdType | IdType |
typedef _NodeType | NodeType |
![]() | |
typedef DistributedId | IdType |
typedef DistributedNode< T > | NodeType |
api::graph::DistributedEdge implementation.
|
inline |
DistributedEdge constructor.
id | edge id |
layer | id of the layer on which the edge is located |
|
inlineoverridevirtual |
Current state of the edge.
A DistributedEdge is LOCAL iff its source and target nodes are LOCAL.
Implements fpmas::api::graph::DistributedEdge< T >.
|
inlineoverridevirtual |
Updates the state of the edge.
Only intended for internal / serialization usage.
state | new state |
Implements fpmas::api::graph::DistributedEdge< T >.
|
inlineoverride |
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 |
|
inlineoverridevirtual |
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:
Implements fpmas::api::graph::DistributedEdge< T >.
|
inlineoverride |
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 |
|
inlineoverridevirtual |
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.
Implements fpmas::api::graph::DistributedEdge< T >.