Gecode::Int::Linear::LinBoolInt< VX > Class Template Reference
#include <linear.hh>
Inherits Gecode::Propagator.
Inherited by Gecode::Int::Linear::EqBoolInt< VX >, and Gecode::Int::Linear::GqBoolInt< VX >.
Detailed Description
template<class VX>
class Gecode::Int::Linear::LinBoolInt< VX >
Baseclass for integer Boolean sum.
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 | |
| LinBoolInt (Space *home, bool share, LinBoolInt &p) | |
| Constructor for cloning p. | |
| LinBoolInt (Space *home, ViewArray< VX > &x, int n_s, int c) | |
| Constructor for creation. | |
Protected Attributes | |
| ViewArray< VX > | x |
| Boolean views. | |
| int | n_s |
| Views from x[0] ... x[n_s-1] have subscriptions. | |
| int | c |
| Righthandside. | |
Constructor & Destructor Documentation
template<class VX>
| Gecode::Int::Linear::LinBoolInt< VX >::LinBoolInt | ( | Space * | home, | |
| bool | share, | |||
| LinBoolInt< VX > & | p | |||
| ) | [protected] |
Constructor for cloning p.
template<class VX>
| Gecode::Int::Linear::LinBoolInt< VX >::LinBoolInt | ( | Space * | home, | |
| ViewArray< VX > & | x, | |||
| int | n_s, | |||
| int | c | |||
| ) | [inline, protected] |
Member Function Documentation
template<class VX>
| PropCost Gecode::Int::Linear::LinBoolInt< VX >::cost | ( | void | ) | const [virtual] |
Cost function (defined as dynamic PC_LINEAR_LO).
Implements Gecode::Propagator.
Definition at line 78 of file bool-int.icc.
template<class VX>
| size_t Gecode::Int::Linear::LinBoolInt< VX >::dispose | ( | Space * | home | ) | [virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 43 of file bool-int.icc.
Member Data Documentation
template<class VX>
ViewArray<VX> Gecode::Int::Linear::LinBoolInt< VX >::x [protected] |
template<class VX>
int Gecode::Int::Linear::LinBoolInt< VX >::n_s [protected] |
template<class VX>
int Gecode::Int::Linear::LinBoolInt< VX >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/int/linear.hh (Revision: 3604)
- gecode/int/linear/bool-int.icc (Revision: 3604)
