Gecode::Set::Int::MinElement< View > Class Template Reference
[Set propagators]
#include <int.hh>
Inherits IntSetPropagator< View, PC_SET_ANY, Gecode::Int::PC_INT_BND >.
Detailed Description
template<class View>
class Gecode::Set::Int::MinElement< View >
Propator for minimum element
Requires
#include "gecode/set/int.hh"
Definition at line 59 of file int.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool) |
Copy propagator during cloning. | |
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 ExecStatus | post (Space *home, View s, Gecode::Int::IntView x) |
Post propagator for x is the minimal element of s. | |
static void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
Post using specification. | |
static Support::Symbol | ati (void) |
Name of this propagator. | |
Protected Member Functions | |
MinElement (Space *home, bool share, MinElement &p) | |
Constructor for cloning p. | |
MinElement (Space *home, View, Gecode::Int::IntView) | |
Constructor for posting. |
Constructor & Destructor Documentation
template<class View>
Gecode::Set::Int::MinElement< View >::MinElement | ( | Space * | home, | |
bool | share, | |||
MinElement< View > & | p | |||
) | [inline, protected] |
template<class View>
Gecode::Set::Int::MinElement< View >::MinElement | ( | Space * | home, | |
View | y0, | |||
Gecode::Int::IntView | y1 | |||
) | [inline, protected] |
Member Function Documentation
template<class View>
Actor * Gecode::Set::Int::MinElement< View >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
template<class View>
ExecStatus Gecode::Set::Int::MinElement< View >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
Perform propagation.
Compute n-th largest element in x0.lub for n = x0.cardMin()-1
Implements Gecode::Propagator.
Definition at line 100 of file minmax.icc.
template<class View>
ExecStatus Gecode::Set::Int::MinElement< View >::post | ( | Space * | home, | |
View | s, | |||
Gecode::Int::IntView | x | |||
) | [inline, static] |
template<class View>
Reflection::ActorSpec Gecode::Set::Int::MinElement< View >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
Specification for this propagator.
Reimplemented from Gecode::Actor.
Definition at line 83 of file minmax.icc.
template<class View>
void Gecode::Set::Int::MinElement< View >::post | ( | Space * | home, | |
Reflection::VarMap & | vars, | |||
const Reflection::ActorSpec & | spec | |||
) | [inline, static] |
template<class View>
Support::Symbol Gecode::Set::Int::MinElement< View >::ati | ( | void | ) | [inline, static] |
The documentation for this class was generated from the following files:
- gecode/set/int.hh (Revision: 5993)
- gecode/set/int/minmax.icc (Revision: 6241)