Gecode::Int::Linear::MemoryLinBoolInt< VX > Class Template Reference
Baseclass for integer Boolean sum using dependencies. More...
#include <linear.hh>
Public Member Functions | |
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| Cost function (defined as low linear). | |
| virtual size_t | dispose (Space &home) |
| Delete propagator and return its size. | |
Protected Member Functions | |
| MemoryLinBoolInt (Space &home, bool share, MemoryLinBoolInt &p) | |
| Constructor for cloning p. | |
| MemoryLinBoolInt (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. | |
Detailed Description
template<class VX>
class Gecode::Int::Linear::MemoryLinBoolInt< VX >
Baseclass for integer Boolean sum using dependencies.
Definition at line 779 of file linear.hh.
Constructor & Destructor Documentation
template<class VX >
| Gecode::Int::Linear::MemoryLinBoolInt< VX >::MemoryLinBoolInt | ( | Space & | home, | |
| bool | share, | |||
| MemoryLinBoolInt< VX > & | p | |||
| ) | [inline, protected] |
template<class VX>
| Gecode::Int::Linear::MemoryLinBoolInt< VX >::MemoryLinBoolInt | ( | Space & | home, | |
| ViewArray< VX > & | x, | |||
| int | n_s, | |||
| int | c | |||
| ) | [inline, protected] |
Member Function Documentation
template<class VX >
| PropCost Gecode::Int::Linear::MemoryLinBoolInt< VX >::cost | ( | const Space & | home, | |
| const ModEventDelta & | med | |||
| ) | const [inline, virtual] |
Cost function (defined as low linear).
Implements Gecode::Propagator.
Definition at line 95 of file bool-int.hpp.
template<class VX >
| size_t Gecode::Int::Linear::MemoryLinBoolInt< VX >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Reimplemented in Gecode::Int::Linear::MemoryReLinBoolInt< VX, VB >, and Gecode::Int::Linear::MemoryReLinBoolInt< VX, VB >.
Definition at line 59 of file bool-int.hpp.
Member Data Documentation
template<class VX>
ViewArray<VX> Gecode::Int::Linear::MemoryLinBoolInt< VX >::x [protected] |
template<class VX>
int Gecode::Int::Linear::MemoryLinBoolInt< VX >::n_s [protected] |
template<class VX>
int Gecode::Int::Linear::MemoryLinBoolInt< VX >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/int/linear.hh (Revision: 8215)
- gecode/int/linear/bool-int.hpp (Revision: 8514)
