Gecode::Float::Bool::Ite< View > Class Template Reference
[Float propagators]
If-then-else propagator. More...
#include <bool.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low ternary). | |
virtual void | reschedule (Space &home) |
Schedule function. | |
virtual Actor * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, Int::BoolView b, View x0, View x1, View x2) |
Post if-then-else propagator. | |
Protected Member Functions | |
Ite (Space &home, bool share, Ite &p) | |
Constructor for cloning p. | |
Ite (Home home, Int::BoolView b, View x0, View x1, View x2) | |
Constructor for creation. | |
Protected Attributes | |
Int::BoolView | b |
View for condition. | |
View | x0 |
Views. | |
View | x1 |
View | x2 |
Detailed Description
template<class View>
class Gecode::Float::Bool::Ite< View >
If-then-else propagator.
Requires
#include <gecode/float/bool.hh>
Definition at line 57 of file bool.hh.
Constructor & Destructor Documentation
template<class View >
Gecode::Float::Bool::Ite< View >::Ite | ( | Space & | home, | |
bool | share, | |||
Ite< View > & | p | |||
) | [inline, protected] |
template<class View >
Gecode::Float::Bool::Ite< View >::Ite | ( | Home | home, | |
Int::BoolView | b, | |||
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, protected] |
Member Function Documentation
template<class View >
PropCost Gecode::Float::Bool::Ite< View >::cost | ( | const Space & | home, | |
const ModEventDelta & | med | |||
) | const [inline, virtual] |
Cost function (defined as low ternary).
Implements Gecode::Propagator.
template<class View >
void Gecode::Float::Bool::Ite< View >::reschedule | ( | Space & | home | ) | [inline, virtual] |
template<class View >
Actor * Gecode::Float::Bool::Ite< View >::copy | ( | Space & | home, | |
bool | share | |||
) | [inline, virtual] |
template<class View >
ExecStatus Gecode::Float::Bool::Ite< View >::propagate | ( | Space & | home, | |
const ModEventDelta & | med | |||
) | [inline, virtual] |
template<class View >
ExecStatus Gecode::Float::Bool::Ite< View >::post | ( | Home | home, | |
Int::BoolView | b, | |||
View | x0, | |||
View | x1, | |||
View | x2 | |||
) | [inline, static] |
template<class View >
size_t Gecode::Float::Bool::Ite< View >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Member Data Documentation
template<class View>
Int::BoolView Gecode::Float::Bool::Ite< View >::b [protected] |
template<class View>
View Gecode::Float::Bool::Ite< View >::x0 [protected] |
template<class View>
View Gecode::Float::Bool::Ite< View >::x1 [protected] |
template<class View>
View Gecode::Float::Bool::Ite< View >::x2 [protected] |
The documentation for this class was generated from the following files:
- gecode/float/bool.hh (Revision: 15304)
- gecode/float/bool/ite.hpp (Revision: 15304)