Generated on Wed Nov 1 15:05:16 2006 for Gecode by doxygen 1.4.5

Gecode::Int::Arithmetic::Square< View > Class Template Reference
[Integer propagators]

#include <arithmetic.hh>

Inherits Gecode::BinaryPropagator< View, PC_INT_BND >.

List of all members.


Detailed Description

template<class View>
class Gecode::Int::Arithmetic::Square< View >

Bounds-consistent square propagator.

Requires

Definition at line 204 of file arithmetic.hh.

Public Member Functions

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_BINARY_HI).

Static Public Member Functions

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

Protected Member Functions

 Square (Space *home, bool share, Square< View > &p)
 Constructor for cloning p.
 Square (Space *home, View x0, View x1)
 Constructor for posting.


Constructor & Destructor Documentation

template<class View>
Gecode::Int::Arithmetic::Square< View >::Square Space home,
bool  share,
Square< View > &  p
[inline, protected]
 

Constructor for cloning p.

Definition at line 178 of file mult.icc.

template<class View>
Gecode::Int::Arithmetic::Square< View >::Square Space home,
View  x0,
View  x1
[inline, protected]
 

Constructor for posting.

Definition at line 159 of file mult.icc.


Member Function Documentation

template<class View>
Actor * Gecode::Int::Arithmetic::Square< View >::copy Space home,
bool  share
[virtual]
 

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 183 of file mult.icc.

template<class View>
ExecStatus Gecode::Int::Arithmetic::Square< View >::propagate Space home  )  [virtual]
 

Perform propagation.

Implements Gecode::Propagator.

Definition at line 195 of file mult.icc.

template<class View>
PropCost Gecode::Int::Arithmetic::Square< View >::cost void   )  const [virtual]
 

Cost function (defined as PC_BINARY_HI).

Reimplemented from Gecode::BinaryPropagator< View, PC_INT_BND >.

Definition at line 189 of file mult.icc.

template<class View>
ExecStatus Gecode::Int::Arithmetic::Square< View >::post Space home,
View  x0,
View  x1
[inline, static]
 

Post propagator $x_0\cdot x_0=x_1$.

Definition at line 164 of file mult.icc.


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