Gecode::Projector Class Reference
[Projector constraints]
#include <projectors.hh>
Detailed Description
Finite set projector specification.
Definition at line 150 of file projectors.hh.
Public Member Functions | |
Projector (void) | |
Default constructor. | |
Projector (SetExpr::var_idx x, const SetExpr &sglb, const SetExpr &slub) | |
Construct a projector ![]() | |
void | scope (Support::DynamicArray< int > &) const |
Returns the scope of the projector. | |
int | arity (void) const |
Returns the arity of the projector. | |
template<bool negated> | |
ExecStatus | propagate (Space *home, ViewArray< Set::SetView > &x) |
Propagate the projector. | |
ExecStatus | check (Space *home, ViewArray< Set::SetView > &x) |
Check for subsumption or failure. | |
unsigned int | glbSize (ViewArray< Set::SetView > &x) |
Compute size of greatest lower bound. | |
unsigned int | lubSize (ViewArray< Set::SetView > &x) |
Compute size of least upper bound. | |
const SetExprCode & | getGlb (void) const |
Return the set expression code for the glb. | |
const SetExprCode & | getLub (void) const |
Return the set expression code for the lub. | |
SetExpr::var_idx | getIdx (void) const |
Return the variable index for this projector. |
Constructor & Destructor Documentation
|
Default constructor.
Definition at line 25 of file projector.icc. |
|
Construct a projector
Definition at line 28 of file projector.icc. |
Member Function Documentation
|
Returns the scope of the projector.
Definition at line 66 of file projector.cc. |
|
Returns the arity of the projector.
Definition at line 27 of file projector.cc. |
|
Propagate the projector.
Definition at line 35 of file projector.icc. |
|
Check for subsumption or failure.
Definition at line 72 of file projector.cc. |
|
Compute size of greatest lower bound.
Definition at line 57 of file projector.icc. |
|
Compute size of least upper bound.
Definition at line 63 of file projector.icc. |
|
Return the set expression code for the glb.
Definition at line 69 of file projector.icc. |
|
Return the set expression code for the lub.
Definition at line 72 of file projector.icc. |
|
Return the variable index for this projector.
Definition at line 75 of file projector.icc. |
The documentation for this class was generated from the following files:
- gecode/set/projectors.hh (Revision: 3573)
- gecode/set/projectors/projector.cc (Revision: 3547)
- gecode/set/projectors/projector.icc (Revision: 3573)