Generated on Sat Aug 25 2012 15:53:12 for Gecode by doxygen 1.7.5
Gecode::Int::Element::Pair Class Reference

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


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.

Definition at line 43 of file pair.cpp.

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

Perform propagation.

Definition at line 101 of file pair.cpp.


Member Data Documentation

Width.

Definition at line 359 of file element.hh.


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