JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
CopyPredicateVisitor.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 6/26/17.
3 //
4 
5 #ifndef JODA_COPYPREDICATEVISITOR_H
6 #define JODA_COPYPREDICATEVISITOR_H
7 
8 #include "AndPredicate.h"
9 #include "ComparePredicate.h"
10 #include "EqualizePredicate.h"
11 #include "NegatePredicate.h"
12 #include "OrPredicate.h"
13 #include "Predicate.h"
14 #include "PredicateVisitor.h"
15 
16 namespace joda::query {
21  public:
22  void visit(AndPredicate *e) override;
23  void visit(NegatePredicate *e) override;
24  void visit(OrPredicate *e) override;
25  void visit(EqualizePredicate *e) override;
26  void visit(ComparePredicate *e) override;
27  void visit(ValToPredicate *e) override;
28 
33  std::unique_ptr<Predicate> getPredicate();
34 
35  private:
36  std::unique_ptr<Predicate> pred;
37 };
38 } // namespace joda::query
39 
40 #endif // JODA_COPYPREDICATEVISITOR_H
Definition: AndPredicate.h:13
Definition: ComparePredicate.h:25
Definition: CopyPredicateVisitor.h:20
void visit(AndPredicate *e) override
Definition: CopyPredicateVisitor.cpp:14
std::unique_ptr< Predicate > getPredicate()
Definition: CopyPredicateVisitor.cpp:54
Definition: EqualizePredicate.h:25
Definition: NegatePredicate.h:15
Definition: OrPredicate.h:15
Definition: PredicateVisitor.h:29
Definition: ValToPredicate.h:17
Definition: AttributeStatAggregator.h:12