Generated on Tue Apr 18 10:23:49 2017 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, bool share)
 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, bool share, Pair &p)
 Constructor for cloning p.

Protected Attributes

int w
 Width.

Detailed Description

Domain consistent pair propagator.

Requires

Definition at line 301 of file element.hh.


Constructor & Destructor Documentation

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

Constructor for cloning p.

Definition at line 68 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 43 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 47 of file pair.hpp.

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 42 of file pair.cpp.

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

Perform propagation.

Implements Gecode::Propagator.

Definition at line 100 of file pair.cpp.


Member Data Documentation

Width.

Definition at line 308 of file element.hh.


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