![]() |
JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <OrPredicate.h>
Public Member Functions | |
| OrPredicate (std::unique_ptr< Predicate > p1, std::unique_ptr< Predicate > p2) | |
| bool | check (const RapidJsonDocument &val) override |
| bool | isCompatible (Predicate *other) override |
| virtual std::string | getType () override |
| void | accept (class PredicateVisitor &v) override |
| void | subAccept (class PredicateVisitor &v, bool lhs) |
Public Member Functions inherited from joda::query::Predicate | |
| virtual | ~Predicate ()=default |
Static Public Attributes | |
| static const std::string | type = "OrPredicate" |
Static Public Attributes inherited from joda::query::Predicate | |
| static const std::string | type = "Predicate" |
Protected Attributes | |
| std::unique_ptr< Predicate > | p1 |
| std::unique_ptr< Predicate > | p2 |
Friends | |
| class | CNFPredicateVisitor |
| class | CNFtoListPredicateVisitor |
| class | CopyPredicateVisitor |
Combines the result of two subpredicates by using the logical OR operation
|
explicit |
|
overridevirtual |
Uses the given PredicateVisitor to traverse the predicate tree with the visitor pattern.
| v | the visitor to use. |
Implements joda::query::Predicate.
|
overridevirtual |
Checks if a given document fulfills the given predicate
| val | the document to check |
Implements joda::query::Predicate.
|
overridevirtual |
|
overridevirtual |
Checks if two predicates are semantically equivalent
Reimplemented from joda::query::Predicate.
| void joda::query::OrPredicate::subAccept | ( | class PredicateVisitor & | v, |
| bool | lhs | ||
| ) |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
static |