Gecode::Int::GCC::Val< View, Card, isView > Class Template Reference
[Integer propagators]
#include <gcc.hh>
Inherits Gecode::Propagator.
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 279 of file gcc.hh.
Public Member Functions | |
virtual size_t | dispose (Space *home) |
Destructor. | |
virtual Actor * | copy (Space *home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (ModEventDelta med) const |
Cost funtion returning dynamic PC_LINEAR_HI. | |
virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
Perform propagation. | |
virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
Specification for this propagator. | |
Static Public Member Functions | |
static void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
Post propagator according to specification. | |
static Support::Symbol | ati (void) |
Name of this propagator. | |
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. |
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] |
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] |
Member Function Documentation
template<class View, class Card, bool isView>
size_t Gecode::Int::GCC::Val< View, Card, isView >::dispose | ( | Space * | home | ) | [inline, virtual] |
template<class View, class Card, bool isView>
Actor * Gecode::Int::GCC::Val< View, Card, isView >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
template<class View, class Card, bool isView>
PropCost Gecode::Int::GCC::Val< View, Card, isView >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost funtion returning dynamic PC_LINEAR_HI.
Complexity depends on the time needed for value lookup in k which is O(n log n).
Implements Gecode::Propagator.
template<class View, class Card, bool isView>
ExecStatus Gecode::Int::GCC::Val< View, Card, isView >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
template<class View, class Card, bool isView>
Reflection::ActorSpec Gecode::Int::GCC::Val< View, Card, isView >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
template<class View, class Card, bool isView>
void Gecode::Int::GCC::Val< View, Card, isView >::post | ( | Space * | home, | |
Reflection::VarMap & | vars, | |||
const Reflection::ActorSpec & | spec | |||
) | [inline, static] |
template<class View, class Card, bool isView>
Support::Symbol Gecode::Int::GCC::Val< View, Card, isView >::ati | ( | void | ) | [inline, static] |
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] |
Member Data Documentation
template<class View, class Card, bool isView>
ViewArray<View> Gecode::Int::GCC::Val< View, Card, isView >::x [protected] |
template<class View, class Card, bool isView>
ViewArray<Card> Gecode::Int::GCC::Val< View, Card, isView >::k [protected] |
The documentation for this class was generated from the following files:
- gecode/int/gcc.hh (Revision: 7285)
- gecode/int/gcc/val.icc (Revision: 7289)