Gecode::BoolAction Class Reference
[Branching]
Recording actions for Boolean variables. More...
#include <int.hh>
Public Member Functions | |
BoolAction (void) | |
Construct as not yet initialized. | |
BoolAction (const BoolAction &a) | |
Copy constructor. | |
BoolAction & | operator= (const BoolAction &a) |
Assignment operator. | |
BoolAction (Home home, const BoolVarArgs &x, double d=1.0, BoolBranchMerit bm=nullptr) | |
Initialize for Boolean variables x with decay factor d. | |
void | init (Home home, const BoolVarArgs &x, double d=1.0, BoolBranchMerit bm=nullptr) |
Initialize for Boolean variables x with decay factor d. |
Detailed Description
Recording actions for Boolean variables.
Definition at line 4056 of file int.hh.
Constructor & Destructor Documentation
Gecode::BoolAction::BoolAction | ( | 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 54 of file action.hpp.
Gecode::BoolAction::BoolAction | ( | const BoolAction & | a | ) | [inline] |
Copy constructor.
Definition at line 57 of file action.hpp.
Gecode::BoolAction::BoolAction | ( | Home | home, | |
const BoolVarArgs & | x, | |||
double | d = 1.0 , |
|||
BoolBranchMerit | bm = nullptr | |||
) |
Initialize for Boolean 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 56 of file action.cpp.
Member Function Documentation
BoolAction & Gecode::BoolAction::operator= | ( | const BoolAction & | a | ) | [inline] |
Assignment operator.
Definition at line 61 of file action.hpp.
void Gecode::BoolAction::init | ( | Home | home, | |
const BoolVarArgs & | x, | |||
double | d = 1.0 , |
|||
BoolBranchMerit | bm = nullptr | |||
) |
Initialize for Boolean 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 63 of file action.cpp.
The documentation for this class was generated from the following files:
- gecode/int.hh (Revision: 15623)
- gecode/int/branch/action.cpp (Revision: 15469)
- gecode/int/branch/action.hpp (Revision: 15469)