Gecode::FloatAction Class Reference
[Branching on float variables]
Recording actions for float variables. More...
#include <float.hh>
Public Member Functions | |
FloatAction (void) | |
Construct as not yet initialized. | |
FloatAction (const FloatAction &a) | |
Copy constructor. | |
FloatAction & | operator= (const FloatAction &a) |
Assignment operator. | |
FloatAction (Home home, const FloatVarArgs &x, double d=1.0, FloatBranchMerit bm=nullptr) | |
Initialize for float variables x with decay factor d. | |
void | init (Home home, const FloatVarArgs &x, double d=1.0, FloatBranchMerit bm=nullptr) |
Initialize for float variables x with decay factor d. |
Detailed Description
Recording actions for float variables.
Definition at line 1555 of file float.hh.
Constructor & Destructor Documentation
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 37 of file action.hpp.
Gecode::FloatAction::FloatAction | ( | const FloatAction & | a | ) | [inline] |
Copy constructor.
Definition at line 40 of file action.hpp.
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 38 of file action.cpp.
Member Function Documentation
FloatAction & Gecode::FloatAction::operator= | ( | const FloatAction & | a | ) | [inline] |
Assignment operator.
Definition at line 44 of file action.hpp.
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 45 of file action.cpp.
The documentation for this class was generated from the following files:
- gecode/float.hh
- gecode/float/branch/action.cpp
- gecode/float/branch/action.hpp