* \brief Boolean variable array * \ingroup TaskModelIntVarArrays */
| 819 | * \ingroup TaskModelIntVarArrays |
| 820 | */ |
| 821 | class BoolVarArray : public VarArray<BoolVar> { |
| 822 | public: |
| 823 | /// \name Creation and initialization |
| 824 | //@{ |
| 825 | /// Default constructor (array of size 0) |
| 826 | BoolVarArray(void); |
| 827 | /// Allocate array for \a n Boolean variables (variables are uninitialized) |
| 828 | BoolVarArray(Space& home, int n); |
| 829 | /// Initialize from Boolean variable array \a a (share elements) |
| 830 | BoolVarArray(const BoolVarArray& a); |
| 831 | /// Initialize from Boolean variable argument array \a a (copy elements) |
| 832 | BoolVarArray(Space& home, const BoolVarArgs& a); |
| 833 | /** |
| 834 | * \brief Initialize array with \a n new variables |
| 835 | * |
| 836 | * The variables are created with a domain ranging from \a min |
| 837 | * to \a max. The following exceptions might be thrown: |
| 838 | * - If \a min is greater than \a max, an exception of type |
| 839 | * Gecode::Int::VariableEmptyDomain is thrown. |
| 840 | * - If \a min is less than 0 or \a max is greater than 1, |
| 841 | * an exception of type |
| 842 | * Gecode::Int::NotZeroOne is thrown. |
| 843 | */ |
| 844 | GECODE_INT_EXPORT |
| 845 | BoolVarArray(Space& home, int n, int min, int max); |
| 846 | //@} |
| 847 | |
| 848 | /// Assignment operator |
| 849 | BoolVarArray& operator =(const BoolVarArray&) = default; |
| 850 | }; |
| 851 | |
| 852 | } |
| 853 |
no outgoing calls
no test coverage detected