Version: 9.15.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 "ForkBlocPoint.hxx"
#include "SetOfPoints.hxx"
#include "PlayGround.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

◆ insertNodeChildrenInSet()

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

Definition at line 321 of file Bloc.cxx.

322 {
323  bool verdict=true;
324  list<Node *> outNodes=node->getOutNodes();
325  for (list<Node *>::iterator iter=outNodes.begin();iter!=outNodes.end(); iter++)
326  {
327  verdict=(nodeSet.insert(*iter)).second;
328  if (verdict) verdict = insertNodeChildrenInSet((*iter),nodeSet);
329  }
330  return verdict;
331 }
bool insertNodeChildrenInSet(Node *node, std::set< Node * > &nodeSet)
Definition: Bloc.cxx:321
std::list< Node * > getOutNodes() const
Definition: Node.cxx:185

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

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