Generated on Tue May 22 09:41:22 2018 for Gecode by doxygen 1.6.3

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 (Home home, View x0, View x1, View x2)
 Constructor for posting.
virtual Actorcopy (Space &home)
 Copy propagator during cloning.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.

Static Public Member Functions

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

Protected Member Functions

 DivMod (Space &home, 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 834 of file arithmetic.hh.


Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 287 of file divmod.hpp.

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

Constructor for posting.

Definition at line 274 of file divmod.hpp.


Member Function Documentation

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

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

Definition at line 279 of file divmod.hpp.

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 292 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 298 of file divmod.hpp.


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