The Gaudi Framework  master (37c0b60a)
IGraphVisitor.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef IGRAPHVISITOR_H_
12 #define IGRAPHVISITOR_H_
13 
14 namespace concurrency {
15 
16  class DecisionNode;
17  class AlgorithmNode;
18  class DataNode;
19  class ConditionNode;
20 
21  class IGraphVisitor {
22  public:
23  virtual ~IGraphVisitor() = default;
24 
25  virtual bool visitEnter( DecisionNode& ) const { return true; }
26  virtual bool visit( DecisionNode& ) { return true; }
27 
28  virtual bool visitEnter( AlgorithmNode& ) const { return true; }
29  virtual bool visit( AlgorithmNode& ) { return true; }
30 
31  virtual bool visitEnter( DataNode& ) const { return true; }
32  virtual bool visit( DataNode& ) { return true; }
33 
34  virtual bool visitEnter( ConditionNode& ) const { return true; }
35  virtual bool visit( ConditionNode& ) { return true; }
36 
37  virtual void reset() {}
38  };
39 } // namespace concurrency
40 
41 #endif /* IGRAPHVISITOR_H_ */
concurrency::IGraphVisitor::reset
virtual void reset()
Definition: IGraphVisitor.h:37
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(DataNode &) const
Definition: IGraphVisitor.h:31
concurrency::IGraphVisitor
Definition: IGraphVisitor.h:21
concurrency::AlgorithmNode
Definition: PrecedenceRulesGraph.h:484
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(AlgorithmNode &) const
Definition: IGraphVisitor.h:28
concurrency::ConditionNode
Definition: PrecedenceRulesGraph.h:591
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(ConditionNode &) const
Definition: IGraphVisitor.h:34
concurrency::IGraphVisitor::visit
virtual bool visit(ConditionNode &)
Definition: IGraphVisitor.h:35
concurrency::IGraphVisitor::visit
virtual bool visit(DecisionNode &)
Definition: IGraphVisitor.h:26
concurrency::IGraphVisitor::~IGraphVisitor
virtual ~IGraphVisitor()=default
concurrency
Definition: PrecedenceRulesGraph.cpp:38
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(DecisionNode &) const
Definition: IGraphVisitor.h:25
concurrency::DecisionNode
Definition: PrecedenceRulesGraph.h:439
concurrency::DataNode
Definition: PrecedenceRulesGraph.h:553
concurrency::IGraphVisitor::visit
virtual bool visit(DataNode &)
Definition: IGraphVisitor.h:32
concurrency::IGraphVisitor::visit
virtual bool visit(AlgorithmNode &)
Definition: IGraphVisitor.h:29