Passing integer arguments
| 632 | |
| 633 | /// Passing integer arguments |
| 634 | class IntArgs : public ArgArray<int> { |
| 635 | public: |
| 636 | /// \name Constructors and initialization |
| 637 | //@{ |
| 638 | /// Allocate empty array |
| 639 | IntArgs(void); |
| 640 | /// Allocate array with \a n elements |
| 641 | explicit IntArgs(int n); |
| 642 | /// Allocate array and copy elements from \a x |
| 643 | IntArgs(const SharedArray<int>& x); |
| 644 | /// Allocate array and copy elements from \a x |
| 645 | IntArgs(const std::vector<int>& x); |
| 646 | /// Allocate array and copy elements from \a x |
| 647 | IntArgs(std::initializer_list<int> x); |
| 648 | /// Allocate array and copy elements from \a first to \a last |
| 649 | template<class InputIterator> |
| 650 | IntArgs(InputIterator first, InputIterator last); |
| 651 | /// Allocate array with \a n elements and initialize with elements from array \a e |
| 652 | IntArgs(int n, const int* e); |
| 653 | /// Initialize from primitive argument array \a a (copy elements) |
| 654 | IntArgs(const ArgArray<int>& a); |
| 655 | |
| 656 | /// Allocate array with \a n elements such that for all \f$0\leq i<n: x_i=\text{start}+i\cdot\text{inc}\f$ |
| 657 | static IntArgs create(int n, int start, int inc=1); |
| 658 | //@} |
| 659 | }; |
| 660 | |
| 661 | /// \brief Passing integer variables |
| 662 | class IntVarArgs : public VarArgArray<IntVar> { |
no outgoing calls
no test coverage detected