Gecode::Int::Linear::ScaleBoolArray Class Reference
Array of scale Boolean views. More...
#include <linear.hh>
Public Member Functions | |
| ScaleBoolArray (void) | |
| Default constructor. | |
| ScaleBoolArray (Space &home, int n) | |
| Create array with n elements. | |
| void | subscribe (Space &home, Propagator &p) |
| Subscribe propagator p. | |
| void | cancel (Space &home, Propagator &p) |
| Cancel propagator p. | |
| void | update (Space &home, bool share, ScaleBoolArray &sba) |
| Update sba during copying. | |
| ScaleBool * | fst (void) const |
| Return pointer to first element. | |
| ScaleBool * | lst (void) const |
| Return pointer after last element. | |
| void | fst (ScaleBool *f) |
| Set pointer to first element. | |
| void | lst (ScaleBool *l) |
| Set pointer after last element. | |
| bool | empty (void) const |
| Test whether array is empty. | |
| int | size (void) const |
| Return number of elements. | |
| void | sort (void) |
| Sort array in decreasing order of coefficients. | |
Detailed Description
Array of scale Boolean views.
Definition at line 1119 of file linear.hh.
Constructor & Destructor Documentation
| Gecode::Int::Linear::ScaleBoolArray::ScaleBoolArray | ( | void | ) | [inline] |
Default constructor.
Definition at line 45 of file bool-scale.hpp.
| Gecode::Int::Linear::ScaleBoolArray::ScaleBoolArray | ( | Space & | home, | |
| int | n | |||
| ) | [inline] |
Create array with n elements.
Definition at line 47 of file bool-scale.hpp.
Member Function Documentation
| void Gecode::Int::Linear::ScaleBoolArray::subscribe | ( | Space & | home, | |
| Propagator & | p | |||
| ) | [inline] |
Subscribe propagator p.
Definition at line 56 of file bool-scale.hpp.
| void Gecode::Int::Linear::ScaleBoolArray::cancel | ( | Space & | home, | |
| Propagator & | p | |||
| ) | [inline] |
Cancel propagator p.
Definition at line 61 of file bool-scale.hpp.
| void Gecode::Int::Linear::ScaleBoolArray::update | ( | Space & | home, | |
| bool | share, | |||
| ScaleBoolArray & | sba | |||
| ) | [inline] |
Update sba during copying.
Definition at line 66 of file bool-scale.hpp.
| ScaleBool * Gecode::Int::Linear::ScaleBoolArray::fst | ( | void | ) | const [inline] |
Return pointer to first element.
Definition at line 80 of file bool-scale.hpp.
| ScaleBool * Gecode::Int::Linear::ScaleBoolArray::lst | ( | void | ) | const [inline] |
Return pointer after last element.
Definition at line 84 of file bool-scale.hpp.
| void Gecode::Int::Linear::ScaleBoolArray::fst | ( | ScaleBool * | f | ) | [inline] |
Set pointer to first element.
Definition at line 88 of file bool-scale.hpp.
| void Gecode::Int::Linear::ScaleBoolArray::lst | ( | ScaleBool * | l | ) | [inline] |
Set pointer after last element.
Definition at line 92 of file bool-scale.hpp.
| bool Gecode::Int::Linear::ScaleBoolArray::empty | ( | void | ) | const [inline] |
Test whether array is empty.
Definition at line 96 of file bool-scale.hpp.
| int Gecode::Int::Linear::ScaleBoolArray::size | ( | void | ) | const [inline] |
Return number of elements.
Definition at line 100 of file bool-scale.hpp.
| void Gecode::Int::Linear::ScaleBoolArray::sort | ( | void | ) | [inline] |
Sort array in decreasing order of coefficients.
Definition at line 110 of file bool-scale.hpp.
The documentation for this class was generated from the following files:
- gecode/int/linear.hh (Revision: 13292)
- gecode/int/linear/bool-scale.hpp (Revision: 10364)
