Generated on Mon Jul 6 18:09:32 2009 for Gecode by doxygen 1.5.9

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

Integer division/modulo propagator. More...

#include <arithmetic.hh>

List of all members.

Public Member Functions

 DivMod (Space &home, View x0, View x1)
 Constructor for posting.
virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Space &home, View x0, View x1)
 Post propagator $x_0\neq 0 \land (x_1\neq 0\Rightarrow x_0\times x_1>0) \land \mathrm{abs}(x_1)<\mathrm{abs}(x_0)$.

Protected Member Functions

 DivMod (Space &home, bool share, DivMod< View > &p)
 Constructor for cloning p.


Detailed Description

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

Integer division/modulo propagator.

This propagator implements the relation between divisor and modulo of an integer division.

Requires

Definition at line 635 of file arithmetic.hh.


Constructor & Destructor Documentation

template<class View >
Gecode::Int::Arithmetic::DivMod< View >::DivMod ( Space home,
bool  share,
DivMod< View > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 364 of file divmod.hpp.

template<class View >
Gecode::Int::Arithmetic::DivMod< View >::DivMod ( Space home,
View  x0,
View  x1 
) [inline]

Constructor for posting.

Definition at line 351 of file divmod.hpp.


Member Function Documentation

template<class View >
ExecStatus Gecode::Int::Arithmetic::DivMod< View >::post ( Space home,
View  x0,
View  x1 
) [inline, static]

Post propagator $x_0\neq 0 \land (x_1\neq 0\Rightarrow x_0\times x_1>0) \land \mathrm{abs}(x_1)<\mathrm{abs}(x_0)$.

Definition at line 356 of file divmod.hpp.

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 370 of file divmod.hpp.

template<class View >
ExecStatus Gecode::Int::Arithmetic::DivMod< View >::propagate ( Space home,
const ModEventDelta med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 376 of file divmod.hpp.


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