6 #ifndef YARP_MANAGER_NODE
7 #define YARP_MANAGER_NODE
44 bVirtual = virtualLink;
50 void setVirtual(
bool virtualLink) { bVirtual = virtualLink;}
79 if(szLabel) { label = szLabel; }
82 virtual ~Node() { model =
nullptr; }
89 return ((
sucCount()==0) ?
true :
false);
93 void setLabel(
const char* szLabel) {
if(szLabel) { label = szLabel; } }
94 const char*
getLabel() {
return label.c_str(); }
95 int sucCount() {
return static_cast<int>(sucessors.size()); }
99 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()
void setSatisfied(bool sat)
bool addSuc(Node *node, float weight, bool _virtual=false)
class Node
Node(NodeType _type, const char *szLabel)
Link & getLinkAt(int index)
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
The main, catch-all namespace for YARP.