Generated on Sat May 25 2013 18:00:45 for Gecode by doxygen 1.8.3.1
Gecode::FloatActivity Class Reference

Recording activities for float variables. More...

#include <float.hh>

Public Member Functions

 FloatActivity (void)
 Construct as not yet initialized. More...
 
 FloatActivity (const FloatActivity &a)
 Copy constructor. More...
 
FloatActivityoperator= (const FloatActivity &a)
 Assignment operator. More...
 
 FloatActivity (Home home, const FloatVarArgs &x, double d=1.0)
 Initialize for float variables x with decay factor d. More...
 
void init (Home, const FloatVarArgs &x, double d=1.0)
 Initialize for float variables x with decay factor d. More...
 
- Public Member Functions inherited from Gecode::Activity
 Activity (void)
 Construct as not yet intialized. More...
 
 Activity (const Activity &a)
 Copy constructor. More...
 
Activityoperator= (const Activity &a)
 Assignment operator. More...
 
template<class View >
 Activity (Home home, ViewArray< View > &x, double d)
 Initialize for views x and decay factor d. More...
 
template<class View >
void init (Home home, ViewArray< View > &x, double d)
 Initialize for views x and decay factor d. More...
 
bool initialized (void) const
 Test whether already initialized. More...
 
void update (Space &home, bool share, Activity &a)
 Updating during cloning. More...
 
 ~Activity (void)
 Destructor. More...
 
double operator[] (int i) const
 Return activity value at position i. More...
 
int size (void) const
 Return number of activity values. More...
 
void decay (Space &home, double d)
 Set decay factor to d. More...
 
double decay (const Space &home) const
 Return decay factor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Gecode::Activity
static const Activity def
 Default (empty) activity information. More...
 
- Protected Member Functions inherited from Gecode::Activity
void update (int i)
 Update activity value at position i. More...
 
void decay (int i)
 Decay activity value at position i. More...
 
void acquire (void)
 Acquire mutex. More...
 
void release (void)
 Release mutex. More...
 
void init (int n, double d)
 Initialize for n views with decay factor d. More...
 
- Protected Attributes inherited from Gecode::Activity
Storagestorage
 Pointer to storage object. More...
 

Detailed Description

Recording activities for float variables.

Definition at line 1441 of file float.hh.

Constructor & Destructor Documentation

Gecode::FloatActivity::FloatActivity ( void  )
inline

Construct as not yet initialized.

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

Definition at line 41 of file activity.hpp.

Gecode::FloatActivity::FloatActivity ( const FloatActivity a)
inline

Copy constructor.

Definition at line 44 of file activity.hpp.

Gecode::FloatActivity::FloatActivity ( Home  home,
const FloatVarArgs x,
double  d = 1.0 
)

Initialize for float variables x with decay factor d.

Definition at line 42 of file activity.cpp.

Member Function Documentation

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

Assignment operator.

Definition at line 48 of file activity.hpp.

void Gecode::FloatActivity::init ( Home  home,
const FloatVarArgs x,
double  d = 1.0 
)

Initialize for float variables x with decay factor d.

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

Definition at line 48 of file activity.cpp.


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