Generated on Tue Jul 18 2017 18:41:42 for Gecode by doxygen 1.8.13

Recording actions for float variables. More...

#include <float.hh>

Public Member Functions

 FloatAction (void)
 Construct as not yet initialized. More...
 
 FloatAction (const FloatAction &a)
 Copy constructor. More...
 
FloatActionoperator= (const FloatAction &a)
 Assignment operator. More...
 
 FloatAction (Home home, const FloatVarArgs &x, double d=1.0, FloatBranchMerit bm=nullptr)
 Initialize for float variables x with decay factor d. More...
 
void init (Home home, const FloatVarArgs &x, double d=1.0, FloatBranchMerit bm=nullptr)
 Initialize for float variables x with decay factor d. More...
 
- Public Member Functions inherited from Gecode::Action
 Action (void)
 Construct as not yet intialized. More...
 
 Action (const Action &a)
 Copy constructor. More...
 
Actionoperator= (const Action &a)
 Assignment operator. More...
 
template<class View >
 Action (Home home, ViewArray< View > &x, double d, typename BranchTraits< typename View::VarType >::Merit bm)
 Initialize for views x and decay factor d and action as defined by bm. More...
 
template<class View >
void init (Home home, ViewArray< View > &x, double d, typename BranchTraits< typename View::VarType >::Merit bm)
 Initialize for views x and decay factor d and action as defined by bm. More...
 
 operator bool (void) const
 Test whether already initialized. More...
 
void update (Space &home, bool share, Action &a)
 Updating during cloning. More...
 
 ~Action (void)
 Destructor. More...
 
double operator[] (int i) const
 Return action value at position i. More...
 
int size (void) const
 Return number of action 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::Action
static const Action def
 Default (empty) action information. More...
 
- Protected Member Functions inherited from Gecode::Action
void update (int i)
 Update action value at position i. More...
 
void acquire (void)
 Acquire mutex. More...
 
void release (void)
 Release mutex. More...
 
- Protected Attributes inherited from Gecode::Action
Storagestorage
 Pointer to storage object. More...
 

Detailed Description

Recording actions for float variables.

Definition at line 1492 of file float.hh.

Constructor & Destructor Documentation

◆ FloatAction() [1/3]

Gecode::FloatAction::FloatAction ( void  )
inline

Construct as not yet initialized.

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

Definition at line 41 of file action.hpp.

◆ FloatAction() [2/3]

Gecode::FloatAction::FloatAction ( const FloatAction a)
inline

Copy constructor.

Definition at line 44 of file action.hpp.

◆ FloatAction() [3/3]

Gecode::FloatAction::FloatAction ( Home  home,
const FloatVarArgs x,
double  d = 1.0,
FloatBranchMerit  bm = nullptr 
)

Initialize for float variables x with decay factor d.

If the branch merit function bm is different from nullptr, the action for each variable is initialized with the merit returned by bm.

Definition at line 42 of file action.cpp.

Member Function Documentation

◆ operator=()

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

Assignment operator.

Definition at line 48 of file action.hpp.

◆ init()

void Gecode::FloatAction::init ( Home  home,
const FloatVarArgs x,
double  d = 1.0,
FloatBranchMerit  bm = nullptr 
)

Initialize for float variables x with decay factor d.

If the branch merit function bm is different from nullptr, the action for each variable is initialized with the merit returned by bm.

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

Definition at line 49 of file action.cpp.


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