* \brief Recording actions for integer variables * * \ingroup TaskModelIntBranch */
| 4495 | * \ingroup TaskModelIntBranch |
| 4496 | */ |
| 4497 | class IntAction : public Action { |
| 4498 | public: |
| 4499 | /** |
| 4500 | * \brief Construct as not yet initialized |
| 4501 | * |
| 4502 | * The only member functions that can be used on a constructed but not |
| 4503 | * yet initialized action storage is init or the assignment operator. |
| 4504 | * |
| 4505 | */ |
| 4506 | IntAction(void); |
| 4507 | /// Copy constructor |
| 4508 | IntAction(const IntAction& a); |
| 4509 | /// Assignment operator |
| 4510 | IntAction& operator =(const IntAction& a); |
| 4511 | /** |
| 4512 | * \brief Initialize for integer variables \a x with decay factor \a d |
| 4513 | * |
| 4514 | * Counts propagation if \a p is true and failure if \a f is true. |
| 4515 | * |
| 4516 | * If the branch merit function \a bm is different from nullptr, the |
| 4517 | * action for each variable is initialized with the merit returned |
| 4518 | * by \a bm. |
| 4519 | */ |
| 4520 | GECODE_INT_EXPORT |
| 4521 | IntAction(Home home, const IntVarArgs& x, double d=1.0, |
| 4522 | bool p=true, bool f=true, |
| 4523 | IntBranchMerit bm=nullptr); |
| 4524 | /** |
| 4525 | * \brief Initialize for integer variables \a x with decay factor \a d |
| 4526 | * |
| 4527 | * Counts propagation if \a p is true and failure if \a f is true. |
| 4528 | * |
| 4529 | * If the branch merit function \a bm is different from nullptr, the |
| 4530 | * action for each variable is initialized with the merit returned |
| 4531 | * by \a bm. |
| 4532 | * |
| 4533 | * This member function can only be used once and only if the |
| 4534 | * action storage has been constructed with the default constructor. |
| 4535 | * |
| 4536 | */ |
| 4537 | GECODE_INT_EXPORT void |
| 4538 | init(Home home, const IntVarArgs& x, double d=1.0, |
| 4539 | bool p=true, bool f=true, |
| 4540 | IntBranchMerit bm=nullptr); |
| 4541 | }; |
| 4542 | |
| 4543 | /** |
| 4544 | * \brief Recording actions for Boolean variables |