Version: 8.3.0
Bloc.cxx File Reference
#include "Bloc.hxx"
#include "LinkInfo.hxx"
#include "InputPort.hxx"
#include "InputDataStreamPort.hxx"
#include "OutputPort.hxx"
#include "OutputDataStreamPort.hxx"
#include "ElementaryNode.hxx"
#include "Visitor.hxx"
#include "SetOfPoints.hxx"
#include <queue>
#include <iostream>
#include <numeric>
#include "YacsTrace.hxx"
Include dependency graph for Bloc.cxx:

Go to the source code of this file.

Functions

bool insertNodeChildrenInSet (Node *node, std::set< Node * > &nodeSet)
 

Function Documentation

bool insertNodeChildrenInSet ( Node node,
std::set< Node * > &  nodeSet 
)

Definition at line 319 of file Bloc.cxx.

References YACS::ENGINE::Node::getOutNodes().

Referenced by YACS::ENGINE::Bloc::checkNoCyclePassingThrough().

320 {
321  bool verdict=true;
322  list<Node *> outNodes=node->getOutNodes();
323  for (list<Node *>::iterator iter=outNodes.begin();iter!=outNodes.end(); iter++)
324  {
325  verdict=(nodeSet.insert(*iter)).second;
326  if (verdict) verdict = insertNodeChildrenInSet((*iter),nodeSet);
327  }
328  return verdict;
329 }