Generated on Sun Aug 9 2020 05:34:08 for Gecode by doxygen 1.8.18
Gecode::IntArgs Class Reference

Passing integer arguments. More...

#include <int.hh>

Constructors and initialization

 IntArgs (void)
 Allocate empty array. More...
 
 IntArgs (int n)
 Allocate array with n elements. More...
 
 IntArgs (const SharedArray< int > &x)
 Allocate array and copy elements from x. More...
 
 IntArgs (const std::vector< int > &x)
 Allocate array and copy elements from x. More...
 
 IntArgs (std::initializer_list< int > x)
 Allocate array and copy elements from x. More...
 
template<class InputIterator >
 IntArgs (InputIterator first, InputIterator last)
 Allocate array and copy elements from first to last. More...
 
 IntArgs (int n, const int *e)
 Allocate array with n elements and initialize with elements from array e. More...
 
 IntArgs (const ArgArray< int > &a)
 Initialize from primitive argument array a (copy elements) More...
 
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}$. More...
 

Additional Inherited Members

- Public Member Functions inherited from Gecode::ArgArray< int >
 ArgArray (void)
 Allocate empty array. More...
 
 ArgArray (int n)
 Allocate array with n elements. More...
 
 ArgArray (int n, const int *e)
 Allocate array with n elements and initialize with elements from array e. More...
 
 ArgArray (const ArgArray< int > &a)
 Initialize from argument array a (copy elements) More...
 
 ArgArray (const std::vector< int > &a)
 Initialize from vector a. More...
 
 ArgArray (std::initializer_list< int > a)
 Initialize from initializer list a. More...
 
 ArgArray (InputIterator first, InputIterator last)
 Initialize from InputIterator first and last. More...
 
ArrayTraits< ArgArray< int > >::ArgsType slice (int start, int inc=1, int n=-1)
 Return slice $y$ of length n such that forall $0\leq i<n$, $y_i=x_{\text{start}+i\cdot\text{inc}}$. More...
 
ArrayTraits< ArgArray< int > >::ArgsType & operator<< (const int &x)
 Insert a new element x at the end of the array (increase size by 1) More...
 
ArrayTraits< ArgArray< int > >::ArgsType & operator<< (const ArgArray< int > &x)
 Append x to the end of the array. More...
 

Detailed Description

Passing integer arguments.

Definition at line 628 of file int.hh.

Constructor & Destructor Documentation

◆ IntArgs() [1/8]

Gecode::IntArgs::IntArgs ( void  )
inline

Allocate empty array.

Definition at line 42 of file array.hpp.

◆ IntArgs() [2/8]

Gecode::IntArgs::IntArgs ( int  n)
inlineexplicit

Allocate array with n elements.

Definition at line 45 of file array.hpp.

◆ IntArgs() [3/8]

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

Allocate array and copy elements from x.

Definition at line 48 of file array.hpp.

◆ IntArgs() [4/8]

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

Allocate array and copy elements from x.

Definition at line 55 of file array.hpp.

◆ IntArgs() [5/8]

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

Allocate array and copy elements from x.

Definition at line 59 of file array.hpp.

◆ IntArgs() [6/8]

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.

◆ IntArgs() [7/8]

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.

◆ IntArgs() [8/8]

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

◆ create()

IntArgs Gecode::IntArgs::create ( int  n,
int  start,
int  inc = 1 
)
inlinestatic

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: