Gecode::BoolExpr::NNF Class Reference
Node for negation normalform (NNF). More...
#include <minimodel.hh>
Public Member Functions | |
| void | post (Space &home, NodeType t, BoolVarArgs &bp, BoolVarArgs &bn, int &ip, int &in, IntConLevel icl) const |
| Post propagators for nested conjunctive and disjunctive expression. | |
| BoolVar | post (Space &home, IntConLevel icl) const |
| Post propagators for expression. | |
| void | post (Space &home, bool t, IntConLevel icl) const |
| Post propagators for relation. | |
Static Public Member Functions | |
| static NNF * | nnf (Region &r, Node *n, bool neg) |
| Create negation normalform. | |
| static void * | operator new (size_t s, Region &r) |
| Allocate memory from region. | |
| static void | operator delete (void *) |
| No-op (for exceptions). | |
| static void | operator delete (void *, Region &) |
| No-op. | |
Public Attributes | |
| NodeType | t |
| Type of node. | |
| unsigned int | p |
| Number of positive literals for node type. | |
| unsigned int | n |
| Number of negative literals for node type. | |
| union { | |
| struct { | |
| NNF * l | |
| Left subtree. | |
| NNF * r | |
| Right subtree. | |
| } b | |
| For binary nodes (and, or, eqv). | |
| struct { | |
| bool neg | |
| Is atomic formula negative. | |
| Node * x | |
| Pointer to corresponding Boolean expression node. | |
| } a | |
| For atomic nodes. | |
| } | u |
| Union depending on nodetype t. | |
Detailed Description
Node for negation normalform (NNF).Definition at line 687 of file minimodel.hh.
Member Function Documentation
| BoolExpr::NNF * Gecode::BoolExpr::NNF::nnf | ( | Region & | r, | |
| Node * | n, | |||
| bool | neg | |||
| ) | [static] |
| void Gecode::BoolExpr::NNF::post | ( | Space & | home, | |
| NodeType | t, | |||
| BoolVarArgs & | bp, | |||
| BoolVarArgs & | bn, | |||
| int & | ip, | |||
| int & | in, | |||
| IntConLevel | icl | |||
| ) | const |
Post propagators for nested conjunctive and disjunctive expression.
Definition at line 217 of file bool-expr.cpp.
| BoolVar Gecode::BoolExpr::NNF::post | ( | Space & | home, | |
| IntConLevel | icl | |||
| ) | const |
| void Gecode::BoolExpr::NNF::post | ( | Space & | home, | |
| bool | t, | |||
| IntConLevel | icl | |||
| ) | const |
| void * Gecode::BoolExpr::NNF::operator new | ( | size_t | s, | |
| Region & | r | |||
| ) | [inline, static] |
| void Gecode::BoolExpr::NNF::operator delete | ( | void * | ) | [inline, static] |
| void Gecode::BoolExpr::NNF::operator delete | ( | void * | , | |
| Region & | ||||
| ) | [inline, static] |
Member Data Documentation
| unsigned int Gecode::BoolExpr::NNF::p |
| unsigned int Gecode::BoolExpr::NNF::n |
| struct { ... } Gecode::BoolExpr::NNF::b |
For binary nodes (and, or, eqv).
| struct { ... } Gecode::BoolExpr::NNF::a |
For atomic nodes.
| union { ... } Gecode::BoolExpr::NNF::u |
Union depending on nodetype t.
The documentation for this class was generated from the following files:
- gecode/minimodel.hh (Revision: 8565)
- gecode/minimodel/bool-expr.cpp (Revision: 8565)
