A Predicate
contains a Expr
of Boolean
type in either positive or negative form.
More...
#include <CNF.hpp>
|
uintptr_t | literal_ |
| pointer to Expr; LSB is 1 iff literal is negated
|
|
A Predicate
contains a Expr
of Boolean
type in either positive or negative form.
Definition at line 15 of file CNF.hpp.
◆ Predicate()
m::cnf::Predicate::Predicate |
( |
uintptr_t |
l | ) |
|
|
inlineexplicitprivate |
◆ can_be_null()
bool m::cnf::Predicate::can_be_null |
( |
| ) |
const |
|
inline |
Returns true
iff this Predicate
is nullable, i.e.
may evaluate to NULL
at runtime.
Definition at line 51 of file CNF.hpp.
◆ Create()
◆ dump() [1/2]
void Predicate::dump |
( |
| ) |
const |
◆ dump() [2/2]
void Predicate::dump |
( |
std::ostream & |
out | ) |
const |
◆ expr() [1/2]
◆ expr() [2/2]
const ast::Expr & m::cnf::Predicate::expr |
( |
| ) |
const |
|
inline |
◆ is_equi()
bool m::cnf::Predicate::is_equi |
( |
| ) |
const |
|
inline |
Returns true
iff this Predicate
is an equi-predicate, i.e.
an equality comparison of two designators.
Definition at line 43 of file CNF.hpp.
References and().
◆ negative()
bool m::cnf::Predicate::negative |
( |
| ) |
const |
|
inline |
◆ Negative()
◆ operator!()
Predicate m::cnf::Predicate::operator! |
( |
| ) |
const |
|
inline |
◆ operator!=()
Returns true
iff other
is not equal to this
.
Two Predicate
s are equal, iff they have the same Expr
and the same sign.
Definition at line 64 of file CNF.hpp.
◆ operator*()
const ast::Expr & m::cnf::Predicate::operator* |
( |
| ) |
const |
|
inline |
◆ operator->()
const ast::Expr * m::cnf::Predicate::operator-> |
( |
| ) |
const |
|
inline |
◆ operator<()
bool m::cnf::Predicate::operator< |
( |
Predicate |
other | ) |
const |
|
inline |
Compare Predicate
s by the location of their referenced Expr
in memory and their sign.
Negative Predicate
s are larger than positive Predicate
s of the same expression.
Definition at line 68 of file CNF.hpp.
References literal_.
◆ operator==()
bool m::cnf::Predicate::operator== |
( |
Predicate |
other | ) |
const |
|
inline |
◆ Positive()
◆ to_sql()
void Predicate::to_sql |
( |
std::ostream & |
out | ) |
const |
◆ operator<<
std::ostream &M_EXPORT operator<< |
( |
std::ostream & |
out, |
|
|
const Predicate & |
pred |
|
) |
| |
|
friend |
Print a textual representation of pred
to out
.
◆ to_string
M_EXPORT std::string to_string |
( |
const Predicate & |
pred | ) |
|
|
friend |
◆ literal_
uintptr_t m::cnf::Predicate::literal_ |
|
private |
pointer to Expr; LSB is 1 iff literal is negated
Definition at line 18 of file CNF.hpp.
Referenced by operator<().
The documentation for this struct was generated from the following files: