JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <AndPredicate.h>
Public Member Functions | |
AndPredicate (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 (PredicateVisitor &v) override |
const std::unique_ptr< Predicate > & | getLHS () |
const std::unique_ptr< Predicate > & | getRHS () |
void | subAccept (PredicateVisitor &v, bool lhs) |
Public Member Functions inherited from joda::query::Predicate | |
virtual | ~Predicate ()=default |
Static Public Attributes | |
static const std::string | type = "AndPredicate" |
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 AND 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.
const std::unique_ptr< joda::query::Predicate > & joda::query::AndPredicate::getLHS | ( | ) |
const std::unique_ptr< joda::query::Predicate > & joda::query::AndPredicate::getRHS | ( | ) |
|
overridevirtual |
|
overridevirtual |
Checks if two predicates are semantically equivalent
Reimplemented from joda::query::Predicate.
void joda::query::AndPredicate::subAccept | ( | PredicateVisitor & | v, |
bool | lhs | ||
) |
Accepts either the left hand or right hand predicate
v | The visitor to use |
lhs | if true, accepts the left hand predicate, if false accepts the right hand predicate |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
static |