| The Gaudi Framework v32r1 (f65d50dc)

IGraphVisitor.h
Go to the documentation of this file.
1 #ifndef IGRAPHVISITOR_H_
2 #define IGRAPHVISITOR_H_
3
4 namespace concurrency {
5
6 class DecisionNode;
7 class AlgorithmNode;
8 class DataNode;
9 class ConditionNode;
10
11 class IGraphVisitor {
12 public:
13 virtual ~IGraphVisitor() = default;
14
15 virtual bool visitEnter( DecisionNode& ) const { return true; };
16 virtual bool visit( DecisionNode& ) { return true; };
17
18 virtual bool visitEnter( AlgorithmNode& ) const { return true; };
19 virtual bool visit( AlgorithmNode& ) { return true; };
20
21 virtual bool visitEnter( DataNode& ) const { return true; };
22 virtual bool visit( DataNode& ) { return true; };
23
24 virtual bool visitEnter( ConditionNode& ) const { return true; };
25 virtual bool visit( ConditionNode& ) { return true; };
26
27 virtual void reset(){};
28 };
29 } // namespace concurrency
30
31 #endif /* IGRAPHVISITOR_H_ */
concurrency::DecisionNode
Definition: PrecedenceRulesGraph.h:430
concurrency::DataNode
Definition: PrecedenceRulesGraph.h:555
concurrency
Definition: PrecedenceRulesGraph.cpp:27
concurrency::IGraphVisitor::visit
virtual bool visit(DecisionNode &)
Definition: IGraphVisitor.h:16
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(DecisionNode &) const
Definition: IGraphVisitor.h:15
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(AlgorithmNode &) const
Definition: IGraphVisitor.h:18
concurrency::IGraphVisitor::visit
virtual bool visit(ConditionNode &)
Definition: IGraphVisitor.h:25
concurrency::IGraphVisitor::visit
virtual bool visit(AlgorithmNode &)
Definition: IGraphVisitor.h:19
concurrency::IGraphVisitor::visit
virtual bool visit(DataNode &)
Definition: IGraphVisitor.h:22
concurrency::IGraphVisitor
Definition: IGraphVisitor.h:11
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(ConditionNode &) const
Definition: IGraphVisitor.h:24
concurrency::IGraphVisitor::reset
virtual void reset()
Definition: IGraphVisitor.h:27
concurrency::IGraphVisitor::visitEnter
virtual bool visitEnter(DataNode &) const
Definition: IGraphVisitor.h:21
concurrency::ConditionNode
Definition: PrecedenceRulesGraph.h:593
concurrency::AlgorithmNode
Definition: PrecedenceRulesGraph.h:475
concurrency::IGraphVisitor::~IGraphVisitor
virtual ~IGraphVisitor()=default