JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <EqualizePredicate.h>
Public Member Functions | |
EqualizePredicate (std::unique_ptr< IValueProvider > &&lhs, std::unique_ptr< IValueProvider > &&rhs, bool equal) | |
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 () |
std::unique_ptr< IValueProvider > & | getLhs () |
std::unique_ptr< IValueProvider > & | getRhs () |
bool | isEqual () const |
Public Member Functions inherited from joda::query::Predicate | |
virtual | ~Predicate ()=default |
Protected Attributes | |
std::unique_ptr< IValueProvider > | lhs |
std::unique_ptr< IValueProvider > | rhs |
bool | equal = true |
Additional Inherited Members | |
Static Public Attributes inherited from joda::query::Predicate | |
static const std::string | type = "Predicate" |
Prediate checking two calues for equality
joda::query::EqualizePredicate::EqualizePredicate | ( | std::unique_ptr< IValueProvider > && | lhs, |
std::unique_ptr< IValueProvider > && | rhs, | ||
bool | equal | ||
) |
|
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::EqualizePredicate::duplicate | ( | ) |
std::vector< std::string > joda::query::EqualizePredicate::getAttributes | ( | ) | const |
std::unique_ptr< joda::query::IValueProvider > & joda::query::EqualizePredicate::getLhs | ( | ) |
std::unique_ptr< joda::query::IValueProvider > & joda::query::EqualizePredicate::getRhs | ( | ) |
|
overridevirtual |
|
overridevirtual |
Checks if two predicates are semantically equivalent
Reimplemented from joda::query::Predicate.
bool joda::query::EqualizePredicate::isEqual | ( | ) | const |
std::string joda::query::EqualizePredicate::toString | ( | ) |
|
protected |
|
protected |
|
protected |