Generated on Sat Feb 7 2015 02:01:49 for Gecode by doxygen 1.8.9.1
Gecode::Int::Rel::NaryEqBnd< View > Class Template Reference

n-ary bounds consistent equality propagator More...

#include <rel.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning. More...
 
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
- Public Member Functions inherited from Gecode::NaryPropagator< View, PC_INT_BND >
virtual size_t dispose (Space &home)
 Delete propagator and return its size. More...
 
- Public Member Functions inherited from Gecode::Propagator
ModEventDelta modeventdelta (void) const
 Return the modification event delta. More...
 
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Advise function. More...
 
double afc (const Space &home) const
 Return the accumlated failure count. More...
 
- Public Member Functions inherited from Gecode::Actor

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< View > &x)
 Post bounds consistent propagator $ x_0 = x_1=\ldots =x_{|x|-1}$. More...
 
- Static Public Member Functions inherited from Gecode::Actor
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *p, Space &home)
 No-op for exceptions. More...
 

Protected Member Functions

 NaryEqBnd (Space &home, bool share, NaryEqBnd< View > &p)
 Constructor for cloning p. More...
 
 NaryEqBnd (Home home, ViewArray< View > &)
 Constructor for posting. More...
 
- Protected Member Functions inherited from Gecode::NaryPropagator< View, PC_INT_BND >
 NaryPropagator (Space &home, bool share, NaryPropagator &p)
 Constructor for cloning p. More...
 
 NaryPropagator (Space &home, bool share, Propagator &p, ViewArray< View > &x)
 Constructor for rewriting p during cloning. More...
 
 NaryPropagator (Home home, ViewArray< View > &x)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting. More...
 
 Propagator (Space &home, bool share, Propagator &p)
 Constructor for cloning p. More...
 
Propagatorfwd (void) const
 Return forwarding pointer during copying. More...
 

Additional Inherited Members

- Protected Attributes inherited from Gecode::NaryPropagator< View, PC_INT_BND >
ViewArray< View > x
 Array of views. More...
 

Detailed Description

template<class View>
class Gecode::Int::Rel::NaryEqBnd< View >

n-ary bounds consistent equality propagator

Requires

#include <gecode/int/rel.hh>

Definition at line 170 of file rel.hh.

Constructor & Destructor Documentation

template<class View >
Gecode::Int::Rel::NaryEqBnd< View >::NaryEqBnd ( Space home,
bool  share,
NaryEqBnd< View > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 368 of file eq.hpp.

template<class View >
Gecode::Int::Rel::NaryEqBnd< View >::NaryEqBnd ( Home  home,
ViewArray< View > &  x 
)
inlineprotected

Constructor for posting.

Definition at line 341 of file eq.hpp.

Member Function Documentation

template<class View >
Actor * Gecode::Int::Rel::NaryEqBnd< View >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 373 of file eq.hpp.

template<class View >
PropCost Gecode::Int::Rel::NaryEqBnd< View >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost function.

If a view has been assigned, the cost is low unary. Otherwise it is low linear.

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

Definition at line 379 of file eq.hpp.

template<class View >
ExecStatus Gecode::Int::Rel::NaryEqBnd< View >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 388 of file eq.hpp.

template<class View >
ExecStatus Gecode::Int::Rel::NaryEqBnd< View >::post ( Home  home,
ViewArray< View > &  x 
)
static

Post bounds consistent propagator $ x_0 = x_1=\ldots =x_{|x|-1}$.

Definition at line 346 of file eq.hpp.


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