Generated on Mon Jul 6 18:09:34 2009 for Gecode by doxygen 1.5.9

Gecode::Int::GCC::Val< View, Card, isView > Class Template Reference
[Integer propagators]

Value consistent global cardinality propagator. More...

#include <gcc.hh>

List of all members.

Public Member Functions

virtual size_t dispose (Space &home)
 Destructor.
virtual Actorcopy (Space &home, bool share)
 Copy propagator during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost funtion returning high linear.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Space &home, ViewArray< View > &x, ViewArray< Card > &k)
 Post propagator for views x and cardinalities k.

Protected Member Functions

 Val (Space &home, bool share, Val< View, Card, isView > &p)
 Constructor for cloning p.
 Val (Space &home, ViewArray< View > &, ViewArray< Card > &)
 Constructor for posting.

Protected Attributes

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


Detailed Description

template<class View, class Card, bool isView>
class Gecode::Int::GCC::Val< View, Card, isView >

Value consistent global cardinality propagator.

Requires

 #include <gecode/int/gcc.hh> 

Definition at line 263 of file gcc.hh.


Constructor & Destructor Documentation

template<class View , class Card , bool isView>
Gecode::Int::GCC::Val< View, Card, isView >::Val ( Space home,
bool  share,
Val< View, Card, isView > &  p 
) [inline, protected]

Constructor for cloning p.

Definition at line 51 of file val.hpp.

template<class View , class Card , bool isView>
Gecode::Int::GCC::Val< View, Card, isView >::Val ( Space home,
ViewArray< View > &  x0,
ViewArray< Card > &  k0 
) [inline, protected]

Constructor for posting.

Definition at line 41 of file val.hpp.


Member Function Documentation

template<class View , class Card , bool isView>
size_t Gecode::Int::GCC::Val< View, Card, isView >::dispose ( Space home  )  [inline, virtual]

Destructor.

Reimplemented from Gecode::Actor.

Definition at line 60 of file val.hpp.

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

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 70 of file val.hpp.

template<class View , class Card , bool isView>
PropCost Gecode::Int::GCC::Val< View, Card, isView >::cost ( const Space home,
const ModEventDelta med 
) const [inline, virtual]

Cost funtion returning high linear.

Complexity depends on the time needed for value lookup in k which is O(n log n).

Implements Gecode::Propagator.

Definition at line 90 of file val.hpp.

template<class View , class Card , bool isView>
ExecStatus Gecode::Int::GCC::Val< View, Card, isView >::propagate ( Space home,
const ModEventDelta med 
) [inline, virtual]

Perform propagation.

Implements Gecode::Propagator.

Definition at line 96 of file val.hpp.

template<class View , class Card , bool isView>
ExecStatus Gecode::Int::GCC::Val< View, Card, isView >::post ( Space home,
ViewArray< View > &  x,
ViewArray< Card > &  k 
) [inline, static]

Post propagator for views x and cardinalities k.

all denotes whether the propagator uses all values occuring in the domains of the problem views specified in x.

Definition at line 76 of file val.hpp.


Member Data Documentation

template<class View, class Card, bool isView>
ViewArray<View> Gecode::Int::GCC::Val< View, Card, isView >::x [protected]

Views on which to perform value-propagation.

Definition at line 266 of file gcc.hh.

template<class View, class Card, bool isView>
ViewArray<Card> Gecode::Int::GCC::Val< View, Card, isView >::k [protected]

Array containing either fixed cardinalities or CardViews.

Definition at line 268 of file gcc.hh.


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