* \brief Recording CHB for integer variables * * \ingroup TaskModelIntBranch */
| 4603 | * \ingroup TaskModelIntBranch |
| 4604 | */ |
| 4605 | class IntCHB : public CHB { |
| 4606 | public: |
| 4607 | /** |
| 4608 | * \brief Construct as not yet initialized |
| 4609 | * |
| 4610 | * The only member functions that can be used on a constructed but not |
| 4611 | * yet initialized CHB storage is init or the assignment operator. |
| 4612 | * |
| 4613 | */ |
| 4614 | IntCHB(void); |
| 4615 | /// Copy constructor |
| 4616 | IntCHB(const IntCHB& chb); |
| 4617 | /// Assignment operator |
| 4618 | IntCHB& operator =(const IntCHB& chb); |
| 4619 | /** |
| 4620 | * \brief Initialize for integer variables \a x |
| 4621 | * |
| 4622 | * If the branch merit function \a bm is different from nullptr, the |
| 4623 | * action for each variable is initialized with the merit returned |
| 4624 | * by \a bm. |
| 4625 | * |
| 4626 | */ |
| 4627 | GECODE_INT_EXPORT |
| 4628 | IntCHB(Home home, const IntVarArgs& x, IntBranchMerit bm=nullptr); |
| 4629 | /** |
| 4630 | * \brief Initialize for integer variables \a x |
| 4631 | * |
| 4632 | * If the branch merit function \a bm is different from nullptr, the |
| 4633 | * action for each variable is initialized with the merit returned |
| 4634 | * by \a bm. |
| 4635 | * |
| 4636 | * This member function can only be used once and only if the |
| 4637 | * action storage has been constructed with the default constructor. |
| 4638 | * |
| 4639 | */ |
| 4640 | GECODE_INT_EXPORT void |
| 4641 | init(Home home, const IntVarArgs& x, IntBranchMerit bm=nullptr); |
| 4642 | }; |
| 4643 | |
| 4644 | /** |
| 4645 | * \brief Recording CHB for Boolean variables |