76 operator bool(
void)
const;
103 template<
class Char,
class Traits>
104 std::basic_ostream<Char,Traits>&
122 AFC::operator bool(
void)
const {
130 if ((d < 0.0) || (d > 1.0))
134 static_cast<Space&
>(home).afc_unshare();
140 if ((d < 0.0) || (d > 1.0))
142 static_cast<Space&
>(home).afc_decay(d);
144 static_cast<Space&
>(home).afc_unshare();
161 if ((d < 0.0) || (d > 1.0))
172 template<
class Char,
class Traits>
173 std::basic_ostream<Char,Traits>&
177 return os <<
"AFC(no information available)";
Class for AFC (accumulated failure count) management.
int size(void) const
Return number of AFC values.
AFC(void)
Construct as not yet intialized.
AFC & operator=(const AFC &a)
Assignment operator.
static const AFC def
Default (empty) AFC information.
void init(Home home, const VarArgArray< Var > &x, double d, bool share=true)
Initialize for variables x and decay factor d.
void decay(Space &home, double d)
Set decay factor to d.
Home class for posting propagators
Exception: illegal decay factor
void afc_decay(double d)
Set AFC decay factor to d
Argument array for variables.
#define GECODE_KERNEL_EXPORT
Gecode toplevel namespace
Archive & operator<<(Archive &e, FloatNumBranch nl)
Post propagator for SetVar x