Gecode::Int::Linear::MemoryLinBoolInt< VX > Class Template Reference
#include <linear.hh>
Inherits Gecode::Propagator.
Inherited by Gecode::Int::Linear::EqBoolInt< VX >::Memory, and Gecode::Int::Linear::GqBoolInt< VX >::Memory.
Detailed Description
template<class VX>
class Gecode::Int::Linear::MemoryLinBoolInt< VX >
Baseclass for integer Boolean sum using dependencies.
Definition at line 907 of file linear.hh.
Public Member Functions | |
virtual PropCost | cost (ModEventDelta med) const |
Cost function (defined as dynamic PC_LINEAR_LO). | |
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. | |
Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m, const Support::Symbol &name) const |
Return specification for this propagator given a variable map m. | |
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::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>
Reflection::ActorSpec Gecode::Int::Linear::MemoryLinBoolInt< VX >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m, | |||
const Support::Symbol & | name | |||
) | const [inline, protected] |
Return specification for this propagator given a variable map m.
Definition at line 99 of file bool-int.icc.
template<class VX>
PropCost Gecode::Int::Linear::MemoryLinBoolInt< VX >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function (defined as dynamic PC_LINEAR_LO).
Implements Gecode::Propagator.
Definition at line 93 of file bool-int.icc.
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.
Definition at line 57 of file bool-int.icc.
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: 7285)
- gecode/int/linear/bool-int.icc (Revision: 6017)