36 auto itr = nodes.find(node->
getLabel());
37 if (itr == nodes.end()) {
48 auto itr = nodes.find(szLabel);
49 if (itr == nodes.end()) {
60 for (itr = nodes.begin(); itr != nodes.end(); itr++) {
61 delete ((*itr).second);
69 for (itr = nodes.begin(); itr != nodes.end(); itr++) {
77 for (itr = nodes.begin(); itr != nodes.end(); itr++) {
84 auto itr = nodes.find(szLabel);
85 if (itr != nodes.end()) {
92 float weight,
bool _virtual)
97 first->
addSuc(second, weight, _virtual);
102 float weight,
bool _virtual)
109 first->
addSuc(second, weight, _virtual);
139 auto itr = nodes.find(node->
getLabel());
140 if (itr == nodes.end()) {
157 auto itr = nodes.begin();
158 for (
int i = 0; i < index; i++) {
161 return (*itr).second;
168 itr.itr = nodes.begin();
175 itr.itr = nodes.end();
182 for (itr = nodes.begin(); itr != nodes.end(); itr++) {
183 if ((*itr).second == node) {
Node * addNode(Node *node)
bool removeNode(Node *node)
Node * getNode(const char *szLabel)
bool removeLink(Node *first, Node *second)
bool addLink(Node *first, Node *second, float weight, bool _virtual=false)
Node * getNodeAt(int index)
void setVisited(bool vis)
void setSatisfied(bool sat)
bool addSuc(Node *node, float weight, bool _virtual=false)
class Node
bool removeSuc(Node *node)
std::map< std::string, Node * >::iterator NodePIterator
#define __CHECK_NULLPTR(_ptr)