Generated on Fri Oct 19 11:25:45 2018 for Gecode by doxygen 1.6.3

Gecode::IntArgs Class Reference

Passing integer arguments. More...

#include <int.hh>

List of all members.

Constructors and initialization



 IntArgs (void)
 Allocate empty array.
 IntArgs (int n)
 Allocate array with n elements.
 IntArgs (const SharedArray< int > &x)
 Allocate array and copy elements from x.
 IntArgs (const std::vector< int > &x)
 Allocate array and copy elements from x.
 IntArgs (std::initializer_list< int > x)
 Allocate array and copy elements from x.
template<class InputIterator >
 IntArgs (InputIterator first, InputIterator last)
 Allocate array and copy elements from first to last.
 IntArgs (int n, const int *e)
 Allocate array with n elements and initialize with elements from array e.
 IntArgs (const ArgArray< int > &a)
 Initialize from primitive argument array a (copy elements).
static IntArgs create (int n, int start, int inc=1)
 Allocate array with n elements such that for all $0\leq i<n: x_i=\text{start}+i\cdot\text{inc}$.

Detailed Description

Passing integer arguments.

Definition at line 628 of file int.hh.


Constructor & Destructor Documentation

Gecode::IntArgs::IntArgs ( void   )  [inline]

Allocate empty array.

Definition at line 42 of file array.hpp.

Gecode::IntArgs::IntArgs ( int  n  )  [inline, explicit]

Allocate array with n elements.

Definition at line 45 of file array.hpp.

Gecode::IntArgs::IntArgs ( const SharedArray< int > &  x  )  [inline]

Allocate array and copy elements from x.

Definition at line 48 of file array.hpp.

Gecode::IntArgs::IntArgs ( const std::vector< int > &  x  )  [inline]

Allocate array and copy elements from x.

Definition at line 55 of file array.hpp.

Gecode::IntArgs::IntArgs ( std::initializer_list< int >  x  )  [inline]

Allocate array and copy elements from x.

Definition at line 59 of file array.hpp.

template<class InputIterator >
Gecode::IntArgs::IntArgs ( InputIterator  first,
InputIterator  last 
) [inline]

Allocate array and copy elements from first to last.

Definition at line 64 of file array.hpp.

Gecode::IntArgs::IntArgs ( int  n,
const int *  e 
) [inline]

Allocate array with n elements and initialize with elements from array e.

Definition at line 68 of file array.hpp.

Gecode::IntArgs::IntArgs ( const ArgArray< int > &  a  )  [inline]

Initialize from primitive argument array a (copy elements).

Definition at line 72 of file array.hpp.


Member Function Documentation

IntArgs Gecode::IntArgs::create ( int  n,
int  start,
int  inc = 1 
) [inline, static]

Allocate array with n elements such that for all $0\leq i<n: x_i=\text{start}+i\cdot\text{inc}$.

Definition at line 76 of file array.hpp.


The documentation for this class was generated from the following files: