Generated on Mon Aug 25 11:35:55 2008 for Gecode by doxygen 1.5.6

# Test::Int::Linear::BoolInt Class Reference [Linear constraints]

Inherits Test::Int::Test.

## Detailed Description

Test linear relation over Boolean variables equal to constant.

Definition at line 149 of file linear.cc.

## Public Member Functions

BoolInt (const std::string &s, const Gecode::IntArgs &a0, Gecode::IntRelType irt0, int c0, Gecode::PropKind pk=Gecode::PK_DEF)
Create and register test.
virtual bool solution (const Assignment &x) const
Test whether x is solution.
virtual void post (Gecode::Space *home, Gecode::IntVarArray &x)
Post constraint on x.
virtual void post (Gecode::Space *home, Gecode::IntVarArray &x, Gecode::BoolVar b)
Post reified constraint on x for b.

## Protected Attributes

Gecode::IntArgs a
Coefficients.
Gecode::IntRelType irt
Integer relation type to propagate.
int c
Righthand-side constant.

## Constructor & Destructor Documentation

 Test::Int::Linear::BoolInt::BoolInt ( const std::string & s, const Gecode::IntArgs & a0, Gecode::IntRelType irt0, int c0, Gecode::PropKind pk = `Gecode::PK_DEF` ) ` [inline]`

Create and register test.

Definition at line 159 of file linear.cc.

## Member Function Documentation

 virtual bool Test::Int::Linear::BoolInt::solution ( const Assignment & x ) const` [inline, virtual]`

Test whether x is solution.

Implements Test::Int::Test.

Definition at line 167 of file linear.cc.

 virtual void Test::Int::Linear::BoolInt::post ( Gecode::Space * home, Gecode::IntVarArray & x ) ` [inline, virtual]`

Post constraint on x.

Implements Test::Int::Test.

Definition at line 174 of file linear.cc.

 virtual void Test::Int::Linear::BoolInt::post ( Gecode::Space * home, Gecode::IntVarArray & x, Gecode::BoolVar b ) ` [inline, virtual]`

Post reified constraint on x for b.

Reimplemented from Test::Int::Test.

Definition at line 184 of file linear.cc.

## Member Data Documentation

 Gecode::IntArgs Test::Int::Linear::BoolInt::a` [protected]`

Coefficients.

Definition at line 152 of file linear.cc.

 Gecode::IntRelType Test::Int::Linear::BoolInt::irt` [protected]`

Integer relation type to propagate.

Definition at line 154 of file linear.cc.

 int Test::Int::Linear::BoolInt::c` [protected]`

Righthand-side constant.

Definition at line 156 of file linear.cc.

The documentation for this class was generated from the following file: