76 operator bool(
void)
const;
103 template<
class Char,
class Traits>
104 std::basic_ostream<Char,Traits>&
105 operator <<(std::basic_ostream<Char,Traits>& os,
122 AFC::operator bool(
void)
const {
130 if ((d < 0.0) || (d > 1.0))
132 static_cast<Space&
>(home).afc_decay(d);
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>&
174 operator <<(std::basic_ostream<Char,Traits>& os,
177 return os <<
"AFC(no information available)";
int size(void) const
Return size of array (number of elements)
void init(Home home, const VarArgArray< Var > &x, double d, bool share=true)
Initialize for variables x and decay factor d.
void afc_decay(double d)
Set AFC decay factor to d
AFC(void)
Construct as not yet intialized.
Class for AFC (accumulated failure count) management.
int size(void) const
Return number of AFC values.
#define GECODE_KERNEL_EXPORT
void decay(Space &home, double d)
Set decay factor to d.
static const AFC def
Default (empty) AFC information.
Post propagator for SetVar x
Gecode toplevel namespace
Argument array for variables.
AFC & operator=(const AFC &a)
Assignment operator.
Exception: illegal decay factor
Home class for posting propagators
struct Gecode::@593::NNF::@62::@64 a
For atomic nodes.