![]() |
mutable
A Database System for Research and Fast Prototyping
|
Helper class to convert Expr
and Clause
to cnf::CNF
.
More...
Public Member Functions | |
CNFGenerator () | |
CNF | get () const |
void | operator() (Const< ErrorExpr > &e) |
void | operator() (Const< Designator > &e) |
void | operator() (Const< Constant > &e) |
void | operator() (Const< FnApplicationExpr > &e) |
void | operator() (Const< UnaryExpr > &e) |
void | operator() (Const< BinaryExpr > &e) |
void | operator() (Const< QueryExpr > &e) |
Private Attributes | |
bool | is_negative_ = false |
CNF | result_ |
|
inline |
Definition at line 216 of file CNF.cpp.
Referenced by m::cnf::to_CNF().
void CNFGenerator::operator() | ( | Const< BinaryExpr > & | e | ) |
Definition at line 264 of file CNF.cpp.
References m::and, m::cnf::Predicate::Create(), and M_unreachable.
void CNFGenerator::operator() | ( | Const< Constant > & | e | ) |
Definition at line 238 of file CNF.cpp.
References m::cnf::Predicate::Create().
void CNFGenerator::operator() | ( | Const< Designator > & | e | ) |
Definition at line 233 of file CNF.cpp.
References m::cnf::Predicate::Create().
void CNFGenerator::operator() | ( | Const< ErrorExpr > & | e | ) |
Definition at line 228 of file CNF.cpp.
References m::cnf::Predicate::Create().
void CNFGenerator::operator() | ( | Const< FnApplicationExpr > & | e | ) |
Definition at line 243 of file CNF.cpp.
References m::cnf::Predicate::Create().
void CNFGenerator::operator() | ( | Const< QueryExpr > & | e | ) |
Definition at line 293 of file CNF.cpp.
References m::cnf::Predicate::Create().
void CNFGenerator::operator() | ( | Const< UnaryExpr > & | e | ) |
Definition at line 248 of file CNF.cpp.
References m::cnf::Predicate::Create().