9 #ifndef YARP_MANAGER_NODE
10 #define YARP_MANAGER_NODE
47 bVirtual = virtualLink;
53 void setVirtual(
bool virtualLink) { bVirtual = virtualLink;}
82 if(szLabel) { label = szLabel; }
85 virtual ~Node() { model =
nullptr; }
92 return ((
sucCount()==0) ?
true :
false);
96 void setLabel(
const char* szLabel) {
if(szLabel) { label = szLabel; } }
97 const char*
getLabel() {
return label.c_str(); }
98 int sucCount() {
return static_cast<int>(sucessors.size()); }
102 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.