Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

Recording AFC information for float variables. More...

#include <float.hh>

Public Member Functions

 FloatAFC (void)
 Construct as not yet initialized.
 
 FloatAFC (const FloatAFC &a)
 Copy constructor.
 
FloatAFCoperator= (const FloatAFC &a)
 Assignment operator.
 
 FloatAFC (Home home, const FloatVarArgs &x, double d=1.0, bool share=true)
 Initialize for float variables x and decay factor d.
 
void init (Home home, const FloatVarArgs &x, double d=1.0, bool share=true)
 Initialize for float variables x with decay factor d.
 
- Public Member Functions inherited from Gecode::AFC
 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, bool share=true)
 Initialize for variables x and decay factor d.
 
template<class Var >
void init (Home home, const VarArgArray< Var > &x, double d, bool share=true)
 Initialize for variables x and decay factor d.
 
 operator bool (void) const
 Test whether already initialized.
 
 ~AFC (void)
 Destructor.
 
int size (void) const
 Return number of AFC values.
 
void decay (Space &home, double d)
 Set decay factor to d.
 
double decay (const Space &home) const
 Return decay factor.
 

Additional Inherited Members

- Static Public Attributes inherited from Gecode::AFC
static const AFC def
 Default (empty) AFC information.
 
- Protected Attributes inherited from Gecode::AFC
int n
 Number of views.
 

Detailed Description

Recording AFC information for float variables.

Definition at line 1509 of file float.hh.

Constructor & Destructor Documentation

◆ FloatAFC() [1/3]

Gecode::FloatAFC::FloatAFC ( void )
inline

Construct as not yet initialized.

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

Definition at line 37 of file afc.hpp.

◆ FloatAFC() [2/3]

Gecode::FloatAFC::FloatAFC ( const FloatAFC & a)
inline

Copy constructor.

Definition at line 40 of file afc.hpp.

◆ FloatAFC() [3/3]

Gecode::FloatAFC::FloatAFC ( Home home,
const FloatVarArgs & x,
double d = 1.0,
bool share = true )
inline

Initialize for float variables x and decay factor d.

If several AFC objects are created for a space or its clones, the AFC values are shared between spaces. If the values should not be shared, share should be false.

Definition at line 49 of file afc.hpp.

Member Function Documentation

◆ operator=()

FloatAFC & Gecode::FloatAFC::operator= ( const FloatAFC & a)
inline

Assignment operator.

Definition at line 44 of file afc.hpp.

◆ init()

void Gecode::FloatAFC::init ( Home home,
const FloatVarArgs & x,
double d = 1.0,
bool share = true )
inline

Initialize for float variables x with decay factor d.

This member function can only be used once and only if the AFC storage has been constructed with the default constructor.

If several AFC objects are created for a space or its clones, the AFC values are shared between spaces. If the values should not be shared, share should be false.

Definition at line 54 of file afc.hpp.


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