#include <ValToPredicate.h>
|
static const std::string | type = "ValToPredicate" |
|
static const std::string | type = "Predicate" |
|
Predicate converting a IValueProvider value into a boolean value. If the value is boolean, the result is used directly Else, false is returned
◆ ValToPredicate() [1/2]
joda::query::ValToPredicate::ValToPredicate |
( |
std::unique_ptr< IValueProvider > && |
val | ) |
|
|
explicit |
◆ ValToPredicate() [2/2]
joda::query::ValToPredicate::ValToPredicate |
( |
bool |
b | ) |
|
|
explicit |
◆ accept()
◆ check()
Checks if a given document fulfills the given predicate
- Parameters
-
- Returns
- true if the document fulfills the predicate, else false.
Implements joda::query::Predicate.
◆ duplicate()
◆ duplicateIVal()
◆ getAttributes()
void joda::query::ValToPredicate::getAttributes |
( |
std::vector< std::string > & |
vec | ) |
const |
Fills the given vector with attributes used in the IValueProvider
- Parameters
-
◆ getType()
std::string joda::query::ValToPredicate::getType |
( |
| ) |
|
|
overridevirtual |
◆ isCompatible()
bool joda::query::ValToPredicate::isCompatible |
( |
Predicate * |
other | ) |
|
|
overridevirtual |
Checks if two predicates are semantically equivalent
- Returns
- true if they are equivalent, false if not
Reimplemented from joda::query::Predicate.
◆ isConstFalse()
bool joda::query::ValToPredicate::isConstFalse |
( |
| ) |
const |
Checks if the value evaluates to a constant false value
- Returns
- true if yes, false else
◆ isConstTrue()
bool joda::query::ValToPredicate::isConstTrue |
( |
| ) |
const |
Checks if the value evaluates to a constant true value
- Returns
- true if yes, false else
◆ toString()
std::string joda::query::ValToPredicate::toString |
( |
| ) |
const |
◆ type
const std::string joda::query::ValToPredicate::type = "ValToPredicate" |
|
static |
◆ val
The documentation for this class was generated from the following files:
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/query/predicate/include/joda/query/predicate/ValToPredicate.h
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/query/predicate/src/ValToPredicate.cpp