Generated on Thu Mar 22 10:39:55 2012 for Gecode by doxygen 1.6.3

Gecode::Int::Arithmetic::SqrPlusDom< VA, VB > Class Template Reference

Domain consistent positive square propagator. More...

#include <arithmetic.hh>

List of all members.

Public Member Functions

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, VA x0, VB x1)
 Post propagator $x_0\cdot x_0=x_1$.

Protected Member Functions

 SqrPlusDom (Home home, VA x0, VB x1)
 Constructor for posting.
 SqrPlusDom (Space &home, bool share, SqrPlusDom< VA, VB > &p)
 Constructor for cloning p.

Detailed Description

template<class VA, class VB>
class Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >

Domain consistent positive square propagator.

This propagator provides multiplication for positive views only.

Definition at line 302 of file arithmetic.hh.


Constructor & Destructor Documentation

template<class VA , class VB >
Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::SqrPlusDom ( Home  home,
VA  x0,
VB  x1 
) [inline, protected]

Constructor for posting.

Definition at line 207 of file sqr.hpp.

template<class VA , class VB >
Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::SqrPlusDom ( Space home,
bool  share,
SqrPlusDom< VA, VB > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 220 of file sqr.hpp.


Member Function Documentation

template<class VA , class VB >
ExecStatus Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::post ( Home  home,
VA  x0,
VB  x1 
) [inline, static]

Post propagator $x_0\cdot x_0=x_1$.

Definition at line 212 of file sqr.hpp.

template<class VA , class VB >
Actor * Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::copy ( Space home,
bool  share 
) [inline, virtual]

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 225 of file sqr.hpp.

template<class VA , class VB >
PropCost Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::cost ( const Space home,
const ModEventDelta med 
) const [inline, virtual]

Cost function.

If a view has been assigned, the cost is low unary. If in stage for bounds propagation, the cost is low binary. Otherwise it is high binary.

Reimplemented from Gecode::MixBinaryPropagator< VA, PC_INT_DOM, VB, PC_INT_DOM >.

Definition at line 231 of file sqr.hpp.

template<class VA , class VB >
ExecStatus Gecode::Int::Arithmetic::SqrPlusDom< VA, VB >::propagate ( Space home,
const ModEventDelta med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 242 of file sqr.hpp.


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