Generated on Fri Mar 20 15:56:45 2015 for Gecode by doxygen 1.6.3

Gecode::AFC Class Reference

Class for AFC (accumulated failure count) management. More...

#include <afc.hpp>

List of all members.

Protected Attributes

int n
 Number of views.

Related Functions

(Note that these are not member functions.)



template<class Char , class Traits >
std::basic_ostream< Char,
Traits > & 
operator<< (std::basic_ostream< Char, Traits > &os, const AFC &a)
 Print AFC information (prints nothing).

Constructors and initialization



static const AFC def
 Default (empty) AFC information.
 AFC (void)
 Construct as not yet intialized.
 AFC (const AFC &a)
 Copy constructor.
AFCoperator= (const AFC &a)
 Assignment operator.
template<class Var >
 AFC (Home home, const VarArgArray< Var > &x, double d)
 Initialize for variables x and decay factor d.
template<class Var >
void init (Home home, const VarArgArray< Var > &x, double d)
 Initialize for views x and decay factor d.
bool initialized (void) const
 Test whether already initialized.
void set (Space &home, double a=1.0)
 Set AFC information to a.

Update and delete activity information



void update (Space &home, bool share, AFC &a)
 Updating during cloning.
 ~AFC (void)
 Destructor.

Information access



int size (void) const
 Return number of AFC values.

Decay factor for aging



void decay (Space &home, double d)
 Set decay factor to d.
double decay (const Space &home) const
 Return decay factor.

Detailed Description

Class for AFC (accumulated failure count) management.

Definition at line 44 of file afc.hpp.


Constructor & Destructor Documentation

Gecode::AFC::AFC ( void   )  [inline]

Construct as not yet intialized.

The only member functions that can be used on a constructed but not yet initialized activity storage is init and the assignment operator.

Definition at line 120 of file afc.hpp.

Gecode::AFC::AFC ( const AFC a  )  [inline]

Copy constructor.

Definition at line 146 of file afc.hpp.

template<class Var >
Gecode::AFC::AFC ( Home  home,
const VarArgArray< Var > &  x,
double  d 
) [inline]

Initialize for variables x and decay factor d.

Definition at line 129 of file afc.hpp.

Gecode::AFC::~AFC ( void   )  [inline]

Destructor.

Definition at line 154 of file afc.hpp.


Member Function Documentation

AFC & Gecode::AFC::operator= ( const AFC a  )  [inline]

Assignment operator.

Definition at line 149 of file afc.hpp.

template<class Var >
void Gecode::AFC::init ( Home  home,
const VarArgArray< Var > &  x,
double  d 
) [inline]

Initialize for views x and decay factor d.

Definition at line 137 of file afc.hpp.

bool Gecode::AFC::initialized ( void   )  const [inline]

Test whether already initialized.

Definition at line 123 of file afc.hpp.

void Gecode::AFC::set ( Space home,
double  a = 1.0 
) [inline]

Set AFC information to a.

Definition at line 169 of file afc.hpp.

void Gecode::AFC::update ( Space home,
bool  share,
AFC a 
) [inline]

Updating during cloning.

Definition at line 157 of file afc.hpp.

int Gecode::AFC::size ( void   )  const [inline]

Return number of AFC values.

Definition at line 114 of file afc.hpp.

void Gecode::AFC::decay ( Space home,
double  d 
) [inline]

Set decay factor to d.

Definition at line 162 of file afc.hpp.

double Gecode::AFC::decay ( const Space home  )  const [inline]

Return decay factor.

Definition at line 174 of file afc.hpp.


Friends And Related Function Documentation

template<class Char , class Traits >
std::basic_ostream< Char, Traits > & operator<< ( std::basic_ostream< Char, Traits > &  os,
const AFC a 
) [related]

Print AFC information (prints nothing).

Definition at line 181 of file afc.hpp.


Member Data Documentation

int Gecode::AFC::n [protected]

Number of views.

Definition at line 47 of file afc.hpp.

const AFC Gecode::AFC::def [static]

Default (empty) AFC information.

Definition at line 74 of file afc.hpp.


The documentation for this class was generated from the following files: