* \brief Recording CHB for float variables * * \ingroup TaskModelFloatBranch */
| 1618 | * \ingroup TaskModelFloatBranch |
| 1619 | */ |
| 1620 | class FloatCHB : public CHB { |
| 1621 | public: |
| 1622 | /** |
| 1623 | * \brief Construct as not yet initialized |
| 1624 | * |
| 1625 | * The only member functions that can be used on a constructed but not |
| 1626 | * yet initialized CHB storage is init or the assignment operator. |
| 1627 | * |
| 1628 | */ |
| 1629 | FloatCHB(void); |
| 1630 | /// Copy constructor |
| 1631 | FloatCHB(const FloatCHB& chb); |
| 1632 | /// Assignment operator |
| 1633 | FloatCHB& operator =(const FloatCHB& chb); |
| 1634 | /** |
| 1635 | * \brief Initialize for float variables \a x |
| 1636 | * |
| 1637 | * If the branch merit function \a bm is different from nullptr, the |
| 1638 | * action for each variable is initialized with the merit returned |
| 1639 | * by \a bm. |
| 1640 | * |
| 1641 | */ |
| 1642 | GECODE_FLOAT_EXPORT |
| 1643 | FloatCHB(Home home, const FloatVarArgs& x, FloatBranchMerit bm=nullptr); |
| 1644 | /** |
| 1645 | * \brief Initialize for float variables \a x |
| 1646 | * |
| 1647 | * If the branch merit function \a bm is different from nullptr, the |
| 1648 | * action for each variable is initialized with the merit returned |
| 1649 | * by \a bm. |
| 1650 | * |
| 1651 | * This member function can only be used once and only if the |
| 1652 | * action storage has been constructed with the default constructor. |
| 1653 | * |
| 1654 | */ |
| 1655 | GECODE_FLOAT_EXPORT void |
| 1656 | init(Home home, const FloatVarArgs& x, FloatBranchMerit bm=nullptr); |
| 1657 | }; |
| 1658 | |
| 1659 | } |
| 1660 |