6#ifndef YARP_MANAGER_NODE
7#define YARP_MANAGER_NODE
43 bVirtual = virtualLink;
49 void setVirtual(
bool virtualLink) { bVirtual = virtualLink;}
78 if(szLabel) { label = szLabel; }
81 virtual ~Node() { model =
nullptr; }
88 return ((
sucCount()==0) ?
true :
false);
92 void setLabel(
const char* szLabel) {
if(szLabel) { label = szLabel; } }
93 const char*
getLabel() {
return label.c_str(); }
94 int sucCount() {
return static_cast<int>(sucessors.size()); }
98 bool addSuc(
Node* node,
float weight,
bool _virtual=
false);
std::vector< GyPoint > points
virtual ~GraphicModel()=default
Link holding all the links of a node.
void setVirtual(bool virtualLink)
Link(Node *to, float weight, bool virtualLink=false)
GraphicModel * getModel()
Link & getLinkAt(int index)
void setSatisfied(bool sat)
bool addSuc(Node *node, float weight, bool _virtual=false)
class Node
Node(NodeType _type, const char *szLabel)
void setModel(GraphicModel *mdl)
bool removeSuc(Node *node)
void setLabel(const char *szLabel)
void setVisited(bool vis)
std::vector< Link >::iterator LinkIterator
std::vector< Node * > NodePVector
enum yarp::manager::__NodeType NodeType
std::vector< Node * >::iterator NodePVIterator
std::vector< Link > LinkContainer