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

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

#include <arithmetic.hh>

Inherits Gecode::BinaryPropagator< View, PC_INT_DOM >.

List of all members.


Detailed Description

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

Domain-consistent absolute value propagator.

Requires

Definition at line 89 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 domain-consistent propagator $ |x_0|=x_1$.

Protected Member Functions

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


Constructor & Destructor Documentation

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

Constructor for cloning p.

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

Constructor for posting.

Definition at line 113 of file abs.icc.


Member Function Documentation

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 139 of file abs.icc.

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

Cost function.

If a view has been assigned, the cost is PC_UNARY_LO. If in stage for bounds propagation, the cost is PC_BINARY_LO. Otherwise it is PC_BINARY_HI.

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

Definition at line 145 of file abs.icc.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 155 of file abs.icc.

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

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

Definition at line 118 of file abs.icc.


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