Generated on Tue Sep 25 2012 20:53:28 for Gecode by doxygen 1.7.5
Gecode::Int::Arithmetic::MaxDom Class Reference

Domain consistent ternary maximum propagator. More...

#include <arithmetic.hh>

List of all members.

Public Member Functions

 MaxDom (Space &home, bool share, Propagator &p, View x0, View x1, View x2)
 Constructor for rewriting p during cloning.
virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function.
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 $ \max\{x_0,x_1\}=x_2$.

Protected Member Functions

 MaxDom (Space &home, bool share, MaxDom &p)
 Constructor for cloning p.
 MaxDom (Home home, View x0, View x1, View x2)
 Constructor for posting.

Detailed Description

Domain consistent ternary maximum propagator.

Requires


Constructor & Destructor Documentation

Gecode::Int::Arithmetic::MaxDom::MaxDom ( Space home,
bool  share,
MaxDom p 
) [protected]

Constructor for cloning p.

Gecode::Int::Arithmetic::MaxDom::MaxDom ( Home  home,
View  x0,
View  x1,
View  x2 
) [inline, protected]

Constructor for posting.

Definition at line 237 of file max.hpp.

Gecode::Int::Arithmetic::MaxDom::MaxDom ( Space home,
bool  share,
Propagator p,
View  x0,
View  x1,
View  x2 
) [inline]

Constructor for rewriting p during cloning.

Definition at line 262 of file max.hpp.


Member Function Documentation

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

Copy propagator during cloning.

Definition at line 268 of file max.hpp.

PropCost Gecode::Int::Arithmetic::MaxDom::cost ( const Space home,
const ModEventDelta med 
) const [virtual]

Cost function.

If in stage for bounds propagation, the cost is low ternary. Otherwise it is high ternary.

Reimplemented from Gecode::TernaryPropagator< View, PC_INT_DOM >.

Definition at line 274 of file max.hpp.

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

Perform propagation.

Definition at line 281 of file max.hpp.

ExecStatus Gecode::Int::Arithmetic::MaxDom::post ( Home  home,
View  x0,
View  x1,
View  x2 
) [static]

Post propagator $ \max\{x_0,x_1\}=x_2$.

Definition at line 242 of file max.hpp.


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