JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <Predicate.h>
Public Member Functions | |
virtual | ~Predicate ()=default |
virtual bool | check (const RapidJsonDocument &val)=0 |
virtual bool | isCompatible (Predicate *other) |
virtual std::string | getType () |
virtual void | accept (class PredicateVisitor &v)=0 |
Static Public Attributes | |
static const std::string | type = "Predicate" |
Predicates represent the filtering CHOOSE predicate. They are used to decide if a given document is in the result set or not.
|
virtualdefault |
|
pure virtual |
Uses the given PredicateVisitor to traverse the predicate tree with the visitor pattern.
v | the visitor to use. |
Implemented in joda::query::AndPredicate, joda::query::ValToPredicate, joda::query::OrPredicate, joda::query::NegatePredicate, joda::query::EqualizePredicate, and joda::query::ComparePredicate.
|
pure virtual |
Checks if a given document fulfills the given predicate
val | the document to check |
Implemented in joda::query::ValToPredicate, joda::query::OrPredicate, joda::query::NegatePredicate, joda::query::EqualizePredicate, joda::query::ComparePredicate, and joda::query::AndPredicate.
|
virtual |
Returns the classname of the predicate.
Reimplemented in joda::query::ValToPredicate, joda::query::OrPredicate, joda::query::NegatePredicate, joda::query::EqualizePredicate, joda::query::ComparePredicate, and joda::query::AndPredicate.
|
virtual |
Checks if two predicates are semantically equivalent
Reimplemented in joda::query::ValToPredicate, joda::query::OrPredicate, joda::query::NegatePredicate, joda::query::EqualizePredicate, joda::query::ComparePredicate, and joda::query::AndPredicate.
|
static |