YARP
Yet Another Robot Platform
yarp::manager::Node Class Referenceabstract

a Node of a Graph More...

#include <yarp/manager/node.h>

+ Inheritance diagram for yarp::manager::Node:

Public Member Functions

 Node (NodeType _type)
 
 Node (NodeType _type, const char *szLabel)
 
virtual ~Node ()
 
void setSatisfied (bool sat)
 
bool isSatisfied ()
 
void setVisited (bool vis)
 
bool isVisited ()
 
bool isLeaf ()
 
NodeType getType ()
 
void setLabel (const char *szLabel)
 
const char * getLabel ()
 
int sucCount ()
 
LinkgetLinkAt (int index)
 
bool addSuc (Node *node, float weight, bool _virtual=false)
 class Node More...
 
bool removeSuc (Node *node)
 
void removeAllSuc ()
 
bool hasSuc (Node *node)
 
virtual Nodeclone ()=0
 
GraphicModelgetModel ()
 
void setModel (GraphicModel *mdl)
 

Detailed Description

a Node of a Graph

Definition at line 68 of file node.h.

Constructor & Destructor Documentation

◆ Node() [1/2]

yarp::manager::Node::Node ( NodeType  _type)
inline

Definition at line 71 of file node.h.

◆ Node() [2/2]

yarp::manager::Node::Node ( NodeType  _type,
const char *  szLabel 
)
inline

Definition at line 77 of file node.h.

◆ ~Node()

virtual yarp::manager::Node::~Node ( )
inlinevirtual

Definition at line 85 of file node.h.

Member Function Documentation

◆ addSuc()

bool Node::addSuc ( Node node,
float  weight,
bool  _virtual = false 
)

class Node

Definition at line 18 of file node.cpp.

◆ clone()

◆ getLabel()

const char* yarp::manager::Node::getLabel ( )
inline

Definition at line 97 of file node.h.

◆ getLinkAt()

Link& yarp::manager::Node::getLinkAt ( int  index)
inline

Definition at line 99 of file node.h.

◆ getModel()

GraphicModel* yarp::manager::Node::getModel ( )
inline

Definition at line 108 of file node.h.

◆ getType()

NodeType yarp::manager::Node::getType ( )
inline

Definition at line 95 of file node.h.

◆ hasSuc()

bool Node::hasSuc ( Node node)

Definition at line 49 of file node.cpp.

◆ isLeaf()

bool yarp::manager::Node::isLeaf ( )
inline

Definition at line 91 of file node.h.

◆ isSatisfied()

bool yarp::manager::Node::isSatisfied ( )
inline

Definition at line 88 of file node.h.

◆ isVisited()

bool yarp::manager::Node::isVisited ( )
inline

Definition at line 90 of file node.h.

◆ removeAllSuc()

void Node::removeAllSuc ( )

Definition at line 42 of file node.cpp.

◆ removeSuc()

bool Node::removeSuc ( Node node)

Definition at line 31 of file node.cpp.

◆ setLabel()

void yarp::manager::Node::setLabel ( const char *  szLabel)
inline

Definition at line 96 of file node.h.

◆ setModel()

void yarp::manager::Node::setModel ( GraphicModel mdl)
inline

Definition at line 109 of file node.h.

◆ setSatisfied()

void yarp::manager::Node::setSatisfied ( bool  sat)
inline

Definition at line 87 of file node.h.

◆ setVisited()

void yarp::manager::Node::setVisited ( bool  vis)
inline

Definition at line 89 of file node.h.

◆ sucCount()

int yarp::manager::Node::sucCount ( )
inline

Definition at line 98 of file node.h.


The documentation for this class was generated from the following files: