Generated on Sat Feb 7 2015 02:01:47 for Gecode by doxygen 1.8.9.1
Gecode::Int::GCC::Val< Card > Class Template Reference

Value consistent global cardinality propagator. More...

#include <gcc.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 funtion returning high linear. More...
 
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation. More...
 
virtual size_t dispose (Space &home)
 Destructor. 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< IntView > &x, ViewArray< Card > &k)
 Post propagator for views x and cardinalities k. 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

 Val (Home home, ViewArray< IntView > &x, ViewArray< Card > &k)
 Constructor for posting. More...
 
 Val (Space &home, bool share, Val< Card > &p)
 Constructor for cloning p. 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...
 

Protected Attributes

ViewArray< IntViewx
 Views on which to perform value-propagation. More...
 
ViewArray< Card > k
 Array containing either fixed cardinalities or CardViews. More...
 

Detailed Description

template<class Card>
class Gecode::Int::GCC::Val< Card >

Value consistent global cardinality propagator.

Requires

#include <gecode/int/gcc.hh>

Definition at line 67 of file gcc.hh.

Constructor & Destructor Documentation

template<class Card >
Gecode::Int::GCC::Val< Card >::Val ( Home  home,
ViewArray< IntView > &  x,
ViewArray< Card > &  k 
)
inlineprotected

Constructor for posting.

Definition at line 47 of file val.hpp.

template<class Card >
Gecode::Int::GCC::Val< Card >::Val ( Space home,
bool  share,
Val< Card > &  p 
)
inlineprotected

Constructor for cloning p.

Definition at line 56 of file val.hpp.

Member Function Documentation

template<class Card >
Actor * Gecode::Int::GCC::Val< Card >::copy ( Space home,
bool  share 
)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 73 of file val.hpp.

template<class Card >
PropCost Gecode::Int::GCC::Val< Card >::cost ( const Space home,
const ModEventDelta med 
) const
virtual

Cost funtion returning high linear.

Implements Gecode::Propagator.

Definition at line 79 of file val.hpp.

template<class Card >
ExecStatus Gecode::Int::GCC::Val< Card >::propagate ( Space home,
const ModEventDelta med 
)
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 278 of file val.hpp.

template<class Card >
size_t Gecode::Int::GCC::Val< Card >::dispose ( Space home)
inlinevirtual

Destructor.

Reimplemented from Gecode::Actor.

Definition at line 64 of file val.hpp.

template<class Card >
ExecStatus Gecode::Int::GCC::Val< Card >::post ( Home  home,
ViewArray< IntView > &  x,
ViewArray< Card > &  k 
)
static

Post propagator for views x and cardinalities k.

Definition at line 284 of file val.hpp.

Member Data Documentation

template<class Card>
ViewArray<IntView> Gecode::Int::GCC::Val< Card >::x
protected

Views on which to perform value-propagation.

Definition at line 70 of file gcc.hh.

template<class Card>
ViewArray<Card> Gecode::Int::GCC::Val< Card >::k
protected

Array containing either fixed cardinalities or CardViews.

Definition at line 72 of file gcc.hh.


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