* \brief Integer variable array * \ingroup TaskModelIntVarArrays */
| 771 | * \ingroup TaskModelIntVarArrays |
| 772 | */ |
| 773 | class IntVarArray : public VarArray<IntVar> { |
| 774 | public: |
| 775 | /// \name Creation and initialization |
| 776 | //@{ |
| 777 | /// Default constructor (array of size 0) |
| 778 | IntVarArray(void); |
| 779 | /// Allocate array for \a n integer variables (variables are uninitialized) |
| 780 | IntVarArray(Space& home, int n); |
| 781 | /// Initialize from integer variable array \a a (share elements) |
| 782 | IntVarArray(const IntVarArray& a); |
| 783 | /// Initialize from integer variable argument array \a a (copy elements) |
| 784 | IntVarArray(Space& home, const IntVarArgs& a); |
| 785 | /** |
| 786 | * \brief Initialize array with \a n new variables |
| 787 | * |
| 788 | * The variables are created with a domain ranging from \a min |
| 789 | * to \a max. The following exceptions might be thrown: |
| 790 | * - If \a min is greater than \a max, an exception of type |
| 791 | * Gecode::Int::VariableEmptyDomain is thrown. |
| 792 | * - If \a min or \a max exceed the limits for integers as defined |
| 793 | * in Gecode::Int::Limits, an exception of type |
| 794 | * Gecode::Int::OutOfLimits is thrown. |
| 795 | */ |
| 796 | GECODE_INT_EXPORT |
| 797 | IntVarArray(Space& home, int n, int min, int max); |
| 798 | /** |
| 799 | * \brief Initialize array with \a n new variables |
| 800 | * |
| 801 | * The variables are created with a domain described by \a s. |
| 802 | * The following exceptions might be thrown: |
| 803 | * - If \a s is empty, an exception of type |
| 804 | * Gecode::Int::VariableEmptyDomain is thrown. |
| 805 | * - If \a s contains values that exceed the limits for integers |
| 806 | * as defined in Gecode::Int::Limits, an exception of type |
| 807 | * Gecode::Int::OutOfLimits is thrown. |
| 808 | */ |
| 809 | GECODE_INT_EXPORT |
| 810 | IntVarArray(Space& home, int n, const IntSet& s); |
| 811 | //@} |
| 812 | |
| 813 | /// Assignment operator |
| 814 | IntVarArray& operator =(const IntVarArray&) = default; |
| 815 | }; |
| 816 | |
| 817 | /** |
| 818 | * \brief Boolean variable array |
no outgoing calls
no test coverage detected