Generated on Thu Apr 11 14:00:01 2019 for Gecode by doxygen 1.6.3

Gecode::Int::Element::Pair Class Reference
[Integer propagators]

Domain consistent pair propagator. More...

#include <element.hh>

List of all members.

Public Member Functions

 Pair (Home home, IntView x0, IntView x1, IntView x2, int w)
 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, IntView x0, IntView x1, IntView x2, int w, int h)
 Post propagator $x_0+x_1\cdot w=x_2$.

Protected Member Functions

 Pair (Space &home, Pair &p)
 Constructor for cloning p.

Protected Attributes

int w
 Width.

Detailed Description

Domain consistent pair propagator.

Requires

Definition at line 297 of file element.hh.


Constructor & Destructor Documentation

Gecode::Int::Element::Pair::Pair ( Space home,
Pair p 
) [inline, protected]

Constructor for cloning p.

Definition at line 64 of file pair.hpp.

Gecode::Int::Element::Pair::Pair ( Home  home,
IntView  x0,
IntView  x1,
IntView  x2,
int  w 
) [inline]

Constructor for posting.

Definition at line 39 of file pair.hpp.


Member Function Documentation

ExecStatus Gecode::Int::Element::Pair::post ( Home  home,
IntView  x0,
IntView  x1,
IntView  x2,
int  w,
int  h 
) [inline, static]

Post propagator $x_0+x_1\cdot w=x_2$.

Definition at line 43 of file pair.hpp.

Actor * Gecode::Int::Element::Pair::copy ( Space home  )  [virtual]

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 38 of file pair.cpp.

ExecStatus Gecode::Int::Element::Pair::propagate ( Space home,
const ModEventDelta med 
) [virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 96 of file pair.cpp.


Member Data Documentation

Width.

Definition at line 304 of file element.hh.


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