Gecode::Int::Linear::LinBool< View > Class Template Reference
#include <linear.hh>
Inherits Gecode::Propagator.
Inherited by Gecode::Int::Linear::EqBool< View >, Gecode::Int::Linear::GqBool< View >, Gecode::Int::Linear::LqBool< View >, and Gecode::Int::Linear::NqBool< View >.
Detailed Description
template<class View>
class Gecode::Int::Linear::LinBool< View >
Base-class for Boolean linear propagators.
Definition at line 756 of file linear.hh.
Public Member Functions | |
| virtual PropCost | cost (void) const |
| Cost function (defined as dynamic PC_LINEAR_LO). | |
| virtual size_t | dispose (Space *home) |
| Delete propagator and return its size. | |
Protected Member Functions | |
| void | eliminate (void) |
| Eliminate assigned Boolean views. | |
| void | all_one (Space *home) |
| Post that all remaining Boolean views must be one. | |
| void | all_zero (Space *home) |
| Post that all remaining Boolean views must be zero. | |
| LinBool (Space *home, bool share, LinBool &p) | |
| Constructor for cloning p. | |
| LinBool (Space *home, ViewArray< BoolView > &x, int n, View y) | |
| Constructor for creation. | |
Protected Attributes | |
| ViewArray< BoolView > | x |
| Boolean views. | |
| int | n |
| Number of Boolean views assigned to 1. | |
| View | y |
| View to compare number of assigned Boolean views to. | |
Constructor & Destructor Documentation
template<class View>
| Gecode::Int::Linear::LinBool< View >::LinBool | ( | Space * | home, | |
| bool | share, | |||
| LinBool< View > & | p | |||
| ) | [inline, protected] |
template<class View>
| Gecode::Int::Linear::LinBool< View >::LinBool | ( | Space * | home, | |
| ViewArray< BoolView > & | x, | |||
| int | n, | |||
| View | y | |||
| ) | [protected] |
Member Function Documentation
template<class View>
| void Gecode::Int::Linear::LinBool< View >::eliminate | ( | void | ) | [protected] |
template<class View>
| void Gecode::Int::Linear::LinBool< View >::all_one | ( | Space * | home | ) | [protected] |
template<class View>
| void Gecode::Int::Linear::LinBool< View >::all_zero | ( | Space * | home | ) | [protected] |
template<class View>
| PropCost Gecode::Int::Linear::LinBool< View >::cost | ( | void | ) | const [virtual] |
template<class View>
| size_t Gecode::Int::Linear::LinBool< View >::dispose | ( | Space * | home | ) | [virtual] |
Member Data Documentation
template<class View>
ViewArray<BoolView> Gecode::Int::Linear::LinBool< View >::x [protected] |
template<class View>
int Gecode::Int::Linear::LinBool< View >::n [protected] |
template<class View>
View Gecode::Int::Linear::LinBool< View >::y [protected] |
The documentation for this class was generated from the following files:
- gecode/int/linear.hh (Revision: 3309)
- gecode/int/linear/bool.icc (Revision: 3309)
