JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <ComparePredicate.h>
Public Member Functions | |
ComparePredicate (std::unique_ptr< IValueProvider > &&lhs, std::unique_ptr< IValueProvider > &&rhs, bool greater=true, bool include=true) | |
bool | check (const RapidJsonDocument &val) override |
bool | isCompatible (Predicate *other) override |
std::string | getType () override |
void | accept (class PredicateVisitor &v) override |
std::string | toString () |
std::vector< std::string > | getAttributes () const |
std::unique_ptr< Predicate > | duplicate () const |
bool | isGreater () const |
bool | isInclude () const |
std::unique_ptr< IValueProvider > & | getLhs () |
std::unique_ptr< IValueProvider > & | getRhs () |
Public Member Functions inherited from joda::query::Predicate | |
virtual | ~Predicate ()=default |
Protected Attributes | |
std::unique_ptr< IValueProvider > | lhs |
std::unique_ptr< IValueProvider > | rhs |
bool | greater = true |
bool | include = true |
Additional Inherited Members | |
Static Public Attributes inherited from joda::query::Predicate | |
static const std::string | type = "Predicate" |
Compares two values for larger/smaller (equals) relations
joda::query::ComparePredicate::ComparePredicate | ( | std::unique_ptr< IValueProvider > && | lhs, |
std::unique_ptr< IValueProvider > && | rhs, | ||
bool | greater = true , |
||
bool | include = true |
||
) |
|
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.
std::unique_ptr< joda::query::Predicate > joda::query::ComparePredicate::duplicate | ( | ) | const |
std::vector< std::string > joda::query::ComparePredicate::getAttributes | ( | ) | const |
std::unique_ptr< joda::query::IValueProvider > & joda::query::ComparePredicate::getLhs | ( | ) |
std::unique_ptr< joda::query::IValueProvider > & joda::query::ComparePredicate::getRhs | ( | ) |
|
overridevirtual |
|
overridevirtual |
Checks if two predicates are semantically equivalent
Reimplemented from joda::query::Predicate.
bool joda::query::ComparePredicate::isGreater | ( | ) | const |
bool joda::query::ComparePredicate::isInclude | ( | ) | const |
std::string joda::query::ComparePredicate::toString | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |