Generated on Wed Nov 1 15:05:16 2006 for Gecode by doxygen 1.4.5

Gecode::Int::Arithmetic::AbsBnd< View > Class Template Reference
[Integer propagators]

#include <arithmetic.hh>

Inherits Gecode::BinaryPropagator< View, PC_INT_BND >.

List of all members.


Detailed Description

template<class View>
class Gecode::Int::Arithmetic::AbsBnd< View >

Bounds-consistent absolute value propagator.

Requires

Definition at line 46 of file arithmetic.hh.

Public Member Functions

virtual Actorcopy (Space *home, bool share)
 Copy propagator during cloning.
virtual PropCost cost (void) const
 Cost function.
virtual ExecStatus propagate (Space *home)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Space *home, View x0, View x1)
 Post bounds-consistent propagator $ |x_0|=x_1$.

Protected Member Functions

 AbsBnd (Space *home, bool share, AbsBnd &p)
 Constructor for cloning p.
 AbsBnd (Space *home, View x0, View x1)
 Constructor for posting.


Constructor & Destructor Documentation

template<class View>
Gecode::Int::Arithmetic::AbsBnd< View >::AbsBnd Space home,
bool  share,
AbsBnd< View > &  p
[protected]
 

Constructor for cloning p.

template<class View>
Gecode::Int::Arithmetic::AbsBnd< View >::AbsBnd Space home,
View  x0,
View  x1
[inline, protected]
 

Constructor for posting.

Definition at line 72 of file abs.icc.


Member Function Documentation

template<class View>
Actor * Gecode::Int::Arithmetic::AbsBnd< View >::copy Space home,
bool  share
[virtual]
 

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 93 of file abs.icc.

template<class View>
PropCost Gecode::Int::Arithmetic::AbsBnd< View >::cost void   )  const [virtual]
 

Cost function.

If a view has been assigned, the cost is PC_UNARY_LO. Otherwise it is PC_BINARY_LO.

Reimplemented from Gecode::BinaryPropagator< View, PC_INT_BND >.

Definition at line 99 of file abs.icc.

template<class View>
ExecStatus Gecode::Int::Arithmetic::AbsBnd< View >::propagate Space home  )  [virtual]
 

Perform propagation.

Implements Gecode::Propagator.

Definition at line 107 of file abs.icc.

template<class View>
ExecStatus Gecode::Int::Arithmetic::AbsBnd< View >::post Space home,
View  x0,
View  x1
[static]
 

Post bounds-consistent propagator $ |x_0|=x_1$.

Definition at line 77 of file abs.icc.


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