Generated on Sat Feb 7 2015 02:01:46 for Gecode by doxygen 1.8.9.1
Gecode::Int::Count::LqInt< VX, VY > Class Template Reference

Propagator for counting views (less or equal integer to number of equal views) More...

#include <count.hh>

Public Member Functions

virtual Actorcopy (Space &home, bool share)
 Create copy during cloning. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
- Public Member Functions inherited from Gecode::Int::Count::IntBase< VX, VY >
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low linear) More...
 
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< VX > &x, VY y, int c)
 Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\leq c$. 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

 LqInt (Space &home, bool share, LqInt &p)
 Constructor for cloning p. More...
 
 LqInt (Home home, ViewArray< VX > &x, int n_s, VY y, int c)
 Constructor for creation. More...
 
- Protected Member Functions inherited from Gecode::Int::Count::IntBase< VX, VY >
 IntBase (Space &home, bool share, IntBase &p)
 Constructor for cloning p. More...
 
 IntBase (Home home, ViewArray< VX > &x, int n_s, VY y, int c)
 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::Int::Count::IntBase< VX, VY >
ViewArray< VX > x
 Views still to count. More...
 
int n_s
 Views from x[0] ... x[n_s-1] have subscriptions. More...
 
VY y
 View to compare to. More...
 
int c
 Number of views which are equal and have been eliminated. More...
 

Detailed Description

template<class VX, class VY>
class Gecode::Int::Count::LqInt< VX, VY >

Propagator for counting views (less or equal integer to number of equal views)

Not all combinations of views are possible. The types VX and VY must be either equal, or VY must be ConstIntView, ZeroIntView, or IntSet.

Requires

Definition at line 231 of file count.hh.

Constructor & Destructor Documentation

template<class VX , class VY >
Gecode::Int::Count::LqInt< VX, VY >::LqInt ( Space home,
bool  share,
LqInt< VX, VY > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 75 of file int-lq.hpp.

template<class VX , class VY >
Gecode::Int::Count::LqInt< VX, VY >::LqInt ( Home  home,
ViewArray< VX > &  x,
int  n_s,
VY  y,
int  c 
)
inlineprotected

Constructor for creation.

Definition at line 42 of file int-lq.hpp.

Member Function Documentation

template<class VX , class VY >
Actor * Gecode::Int::Count::LqInt< VX, VY >::copy ( Space home,
bool  share 
)
virtual

Create copy during cloning.

Implements Gecode::Actor.

Definition at line 80 of file int-lq.hpp.

template<class VX , class VY >
ExecStatus Gecode::Int::Count::LqInt< VX, VY >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 86 of file int-lq.hpp.

template<class VX , class VY >
ExecStatus Gecode::Int::Count::LqInt< VX, VY >::post ( Home  home,
ViewArray< VX > &  x,
VY  y,
int  c 
)
static

Post propagator for $\#\{i\in\{0,\ldots,|x|-1\}\;|\;x_i=y\}\leq c$.

Definition at line 47 of file int-lq.hpp.


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