Generated on Thu Jul 6 07:07:01 2006 for Gecode by doxygen 1.4.7

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

#include <arithmetic.hh>

Inherits Gecode::Propagator.

List of all members.


Detailed Description

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

Bounds-consistent positive square propagator.

This propagator provides multiplication for positive views only.

Definition at line 177 of file arithmetic.hh.

Public Member Functions

 SquarePlus (Space *home, VA x0, VB x1)
 Constructor for posting.
 SquarePlus (Space *home, bool share, SquarePlus< VA, VB > &p)
 Constructor for cloning p.
virtual Actorcopy (Space *home, bool share)
 Copy propagator during cloning.
virtual ExecStatus propagate (Space *home)
 Perform propagation.
virtual PropCost cost (void) const
 Cost function (defined as PC_TERNARY_HI).
virtual size_t dispose (Space *home)
 Delete propagator and return its size.

Static Public Member Functions

static ExecStatus post (Space *home, VA x0, VB x1)
 Post propagator $x_0\cdot x_0=x_1$.

Protected Attributes

VA x0
VB x1


Constructor & Destructor Documentation

template<class VA, class VB>
Gecode::Int::Arithmetic::SquarePlus< VA, VB >::SquarePlus ( Space home,
VA  x0,
VB  x1 
) [inline]

Constructor for posting.

Definition at line 86 of file mult.icc.

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

Constructor for cloning p.

Definition at line 101 of file mult.icc.


Member Function Documentation

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

Post propagator $x_0\cdot x_0=x_1$.

Definition at line 94 of file mult.icc.

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 109 of file mult.icc.

template<class VA, class VB>
ExecStatus Gecode::Int::Arithmetic::SquarePlus< VA, VB >::propagate ( Space home  )  [virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 121 of file mult.icc.

template<class VA, class VB>
PropCost Gecode::Int::Arithmetic::SquarePlus< VA, VB >::cost ( void   )  const [virtual]

Cost function (defined as PC_TERNARY_HI).

Implements Gecode::Propagator.

Definition at line 115 of file mult.icc.

template<class VA, class VB>
size_t Gecode::Int::Arithmetic::SquarePlus< VA, VB >::dispose ( Space home  )  [virtual]

Delete propagator and return its size.

Reimplemented from Gecode::Actor.

Definition at line 135 of file mult.icc.


Member Data Documentation

template<class VA, class VB>
VA Gecode::Int::Arithmetic::SquarePlus< VA, VB >::x0 [protected]

Definition at line 179 of file arithmetic.hh.

template<class VA, class VB>
VB Gecode::Int::Arithmetic::SquarePlus< VA, VB >::x1 [protected]

Definition at line 179 of file arithmetic.hh.


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