Generated on Wed Jan 4 17:49:21 2006 for Gecode by doxygen 1.4.6

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

#include <gcc.hh>

Inherits Gecode::Propagator.

List of all members.


Detailed Description

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

Value consistent global cardinality propagator.

Requires

 #include "int/gcc.hh" 

Definition at line 199 of file gcc.hh.

Public Member Functions

virtual ~Val (void)
virtual Actorcopy (Space *home, bool share)
 Create copy.
virtual PropCost cost (void) const
 Complexity depends on the time needed for value lookup in k which is O(n log n).
virtual ExecStatus propagate (Space *home)
 Propagation function.

Static Public Member Functions

static ExecStatus post (Space *home, ViewArray< View > &, Card &)

Protected Member Functions

 Val (Space *home, bool, Val< View, VarCard, isView > &)
 Val (Space *home, bool, Val< View, FixCard, isView > &)
 Val (Space *home, ViewArray< View > &, Card &)

Protected Attributes

ViewArray< View > x
Card k


Constructor & Destructor Documentation

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

Definition at line 294 of file val.icc.

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

Definition at line 303 of file val.icc.

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

Definition at line 286 of file val.icc.

template<class View, class Card, bool isView>
Gecode::Int::GCC::Val< View, Card, isView >::~Val void   )  [virtual]
 

Definition at line 311 of file val.icc.


Member Function Documentation

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

Create copy.

Implements Gecode::Actor.

Definition at line 318 of file val.icc.

template<class View, class Card, bool isView>
PropCost Gecode::Int::GCC::Val< View, Card, isView >::cost void   )  const [inline, virtual]
 

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

Implements Gecode::Propagator.

Definition at line 337 of file val.icc.

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

Propagation function.

Implements Gecode::Propagator.

Definition at line 343 of file val.icc.

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

Definition at line 323 of file val.icc.


Member Data Documentation

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

Definition at line 201 of file gcc.hh.

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

Definition at line 202 of file gcc.hh.


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