![]() |
fpmas 1.6
|
#include <node.h>
Public Member Functions | |
Node (const IdType &id) | |
Node (const Node &)=delete | |
Node (Node &&)=delete | |
Node & | operator= (const Node &)=delete |
Node & | operator= (Node &&)=delete |
IdType | getId () const override |
float | getWeight () const override |
void | setWeight (float weight) override |
const std::vector< EdgeType * > | getIncomingEdges () const override |
const std::vector< EdgeType * > | getIncomingEdges (api::graph::LayerId layer) const override |
const std::vector< typename EdgeType::NodeType * > | inNeighbors () const override |
const std::vector< typename EdgeType::NodeType * > | inNeighbors (api::graph::LayerId) const override |
const std::vector< EdgeType * > | getOutgoingEdges () const override |
const std::vector< EdgeType * > | getOutgoingEdges (api::graph::LayerId layer) const override |
const std::vector< typename EdgeType::NodeType * > | outNeighbors () const override |
const std::vector< typename EdgeType::NodeType * > | outNeighbors (api::graph::LayerId) const override |
void | linkIn (EdgeType *edge) override |
void | linkOut (EdgeType *edge) override |
void | unlinkIn (EdgeType *edge) override |
void | unlinkOut (EdgeType *edge) override |
virtual IdType | getId () const =0 |
virtual float | getWeight () const =0 |
virtual void | setWeight (float weight)=0 |
virtual const std::vector< EdgeType * > | getIncomingEdges () const =0 |
virtual const std::vector< EdgeType * > | getIncomingEdges (LayerId layer_id) const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | inNeighbors () const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | inNeighbors (LayerId layer_id) const =0 |
virtual const std::vector< EdgeType * > | getOutgoingEdges () const =0 |
virtual const std::vector< EdgeType * > | getOutgoingEdges (LayerId layer_id) const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | outNeighbors () const =0 |
virtual const std::vector< typename EdgeType::NodeType * > | outNeighbors (LayerId layer_id) const =0 |
virtual void | linkIn (EdgeType *edge)=0 |
virtual void | linkOut (EdgeType *edge)=0 |
virtual void | unlinkIn (EdgeType *edge)=0 |
virtual void | unlinkOut (EdgeType *edge)=0 |
Additional Inherited Members | |
![]() | |
typedef _IdType | IdType |
typedef _EdgeType | EdgeType |
api::graph::Node implementation.
|
inline |
|
inlinevirtual |
Reimplemented from fpmas::api::graph::Node< _IdType, _EdgeType >.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Weight of the Node.
The node's weight might be used to perform LoadBalancing.
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
inlineoverridevirtual |
Sets the weight of the Node.
weight | new weight |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to all the incoming edges of this node.
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to the incoming edges of this node on the specified layer.
layer_id | layer ID |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to all the nodes connected to this node with an incoming edge, as returned by getIncomingEdges().
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to the nodes connected to this node with an incoming edge on the specified layer, as returned by getIncomingEdges(layer_id).
layer_id | layer ID |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to all the outgoing edges of this node.
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to the outgoing edges of this node on the specified layer.
layer_id | layer ID |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to all the nodes connected to this node with an outgoing edge, as returned by getOutgoingEdges().
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Returns a vector containing pointers to the nodes connected to this node with an outgoing edge on the specified layer, as returned by getOutgoingEdges(layer_id).
layer_id | layer ID |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Links the specified incoming edge to this node.
Once the node is linked, it should be returned in the following lists :
edge | incoming edge to link |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Links the specified outgoing edge to this node.
Once the node is linked, it should be returned in the following lists :
edge | outgoing edge to link |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Unlinks the specified incoming edge from this node.
Once the node is unlinked, it should not be returned anymore by the following functions :
edge | incoming edge to unlink |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.
|
overridevirtual |
Unlinks the specified outgoing edge from this node.
Once the node is unlinked, it should not be returned anymore by the following functions :
edge | outgoing edge to unlink |
Implements fpmas::api::graph::Node< _IdType, _EdgeType >.