* \brief Recording CHB for Boolean variables * * \ingroup TaskModelIntBranch */
| 4647 | * \ingroup TaskModelIntBranch |
| 4648 | */ |
| 4649 | class BoolCHB : public CHB { |
| 4650 | public: |
| 4651 | /** |
| 4652 | * \brief Construct as not yet initialized |
| 4653 | * |
| 4654 | * The only member functions that can be used on a constructed but not |
| 4655 | * yet initialized action storage is init or the assignment operator. |
| 4656 | * |
| 4657 | */ |
| 4658 | BoolCHB(void); |
| 4659 | /// Copy constructor |
| 4660 | BoolCHB(const BoolCHB& chb); |
| 4661 | /// Assignment operator |
| 4662 | BoolCHB& operator =(const BoolCHB& chb); |
| 4663 | /** |
| 4664 | * \brief Initialize for Boolean variables \a x |
| 4665 | * |
| 4666 | * If the branch merit function \a bm is different from nullptr, the |
| 4667 | * action for each variable is initialized with the merit returned |
| 4668 | * by \a bm. |
| 4669 | * |
| 4670 | */ |
| 4671 | GECODE_INT_EXPORT |
| 4672 | BoolCHB(Home home, const BoolVarArgs& x, BoolBranchMerit bm=nullptr); |
| 4673 | /** |
| 4674 | * \brief Initialize for Boolean variables \a x |
| 4675 | * |
| 4676 | * If the branch merit function \a bm is different from nullptr, the |
| 4677 | * action for each variable is initialized with the merit returned |
| 4678 | * by \a bm. |
| 4679 | * |
| 4680 | * This member function can only be used once and only if the |
| 4681 | * action storage has been constructed with the default constructor. |
| 4682 | * |
| 4683 | */ |
| 4684 | GECODE_INT_EXPORT void |
| 4685 | init(Home home, const BoolVarArgs& x, BoolBranchMerit bm=nullptr); |
| 4686 | }; |
| 4687 | |
| 4688 | } |
| 4689 |